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

Function TestCase7

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

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

Source from the content-addressed store, hash-verified

188
189// Test case 7: size=2, shift=2, stride=8, drop_remainder=false.
190TestCase TestCase7() {
191 return {/*range_data_param*/ {0, 7, 1},
192 /*size*/ CreateTensor<int64>(TensorShape({}), {2}),
193 /*shift*/ CreateTensor<int64>(TensorShape({}), {2}),
194 /*stride*/ CreateTensor<int64>(TensorShape({}), {8}),
195 /*drop_remainder*/
196 CreateTensor<bool>(TensorShape({}), {false}),
197 /*expected_outputs*/
198 {{CreateTensor<int64>(TensorShape({}), {0})},
199 {CreateTensor<int64>(TensorShape({}), {2})},
200 {CreateTensor<int64>(TensorShape({}), {4})},
201 {CreateTensor<int64>(TensorShape({}), {6})}},
202 /*expected_output_dtypes*/ {DT_VARIANT},
203 /*expected_output_shapes*/ {PartialTensorShape({})},
204 /*expected_cardinality*/ 4,
205 /*breakpoints*/ {0, 1, 9}};
206}
207
208// Test case 8: size=2, shift=2, stride=8, drop_remainder=true.
209TestCase TestCase8() {

Callers 1

Calls 2

PartialTensorShapeClass · 0.85
TensorShapeClass · 0.50

Tested by

no test coverage detected