MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / TestCase5

Function TestCase5

tensorflow/core/kernels/data/window_dataset_op_test.cc:156–170  ·  view source on GitHub ↗

Test case 5: size=2, shift=8, stride=1, drop_remainder=false.

Source from the content-addressed store, hash-verified

154
155// Test case 5: size=2, shift=8, stride=1, drop_remainder=false.
156TestCase TestCase5() {
157 return {/*range_data_param*/ {0, 7, 1},
158 /*size*/ CreateTensor<int64>(TensorShape({}), {2}),
159 /*shift*/ CreateTensor<int64>(TensorShape({}), {8}),
160 /*stride*/ CreateTensor<int64>(TensorShape({}), {1}),
161 /*drop_remainder*/
162 CreateTensor<bool>(TensorShape({}), {false}),
163 /*expected_outputs*/
164 {{CreateTensor<int64>(TensorShape({}), {0}),
165 CreateTensor<int64>(TensorShape({}), {1})}},
166 /*expected_output_dtypes*/ {DT_VARIANT},
167 /*expected_output_shapes*/ {PartialTensorShape({})},
168 /*expected_cardinality*/ 1,
169 /*breakpoints*/ {0, 1, 9}};
170}
171
172// Test case 6: size=2, shift=8, stride=1, drop_remainder=true.
173TestCase TestCase6() {

Callers 1

Calls 2

PartialTensorShapeClass · 0.85
TensorShapeClass · 0.50

Tested by

no test coverage detected