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

Function TestCase8

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

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

Source from the content-addressed store, hash-verified

207
208// Test case 8: size=2, shift=2, stride=8, drop_remainder=true.
209TestCase TestCase8() {
210 return {/*range_data_param*/ {0, 7, 1},
211 /*size*/ CreateTensor<int64>(TensorShape({}), {2}),
212 /*shift*/ CreateTensor<int64>(TensorShape({}), {2}),
213 /*stride*/ CreateTensor<int64>(TensorShape({}), {8}),
214 /*drop_remainder*/
215 CreateTensor<bool>(TensorShape({}), {true}),
216 /*expected_outputs*/ {},
217 /*expected_output_dtypes*/ {DT_VARIANT},
218 /*expected_output_shapes*/ {PartialTensorShape({})},
219 /*expected_cardinality*/ 0,
220 /*breakpoints*/ {0, 1, 9}};
221}
222
223// Test case 9: size=4, shift=2, stride=2, drop_remainder=true.
224TestCase TestCase9() {

Callers 1

Calls 2

PartialTensorShapeClass · 0.85
TensorShapeClass · 0.50

Tested by

no test coverage detected