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

Function TestCase10

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

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

Source from the content-addressed store, hash-verified

241
242// Test case 10: size=5, shift=2, stride=2, drop_remainder=true.
243TestCase TestCase10() {
244 return {/*range_data_param*/ {0, 7, 1},
245 /*size*/ CreateTensor<int64>(TensorShape({}), {5}),
246 /*shift*/ CreateTensor<int64>(TensorShape({}), {2}),
247 /*stride*/ CreateTensor<int64>(TensorShape({}), {2}),
248 /*drop_remainder*/
249 CreateTensor<bool>(TensorShape({}), {true}),
250 /*expected_outputs*/ {},
251 /*expected_output_dtypes*/ {DT_VARIANT},
252 /*expected_output_shapes*/ {PartialTensorShape({})},
253 /*expected_cardinality*/ 0,
254 /*breakpoints*/ {0, 1, 9}};
255}
256
257// Test case 11: size=0, shift=2, stride=2, drop_remainder=true.
258TestCase InvalidWindowSizeTestCase() {

Callers 1

Calls 2

PartialTensorShapeClass · 0.85
TensorShapeClass · 0.50

Tested by

no test coverage detected