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

Function TestCase9

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

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

Source from the content-addressed store, hash-verified

222
223// Test case 9: size=4, shift=2, stride=2, drop_remainder=true.
224TestCase TestCase9() {
225 return {/*range_data_param*/ {0, 7, 1},
226 /*size*/ CreateTensor<int64>(TensorShape({}), {4}),
227 /*shift*/ CreateTensor<int64>(TensorShape({}), {2}),
228 /*stride*/ CreateTensor<int64>(TensorShape({}), {2}),
229 /*drop_remainder*/
230 CreateTensor<bool>(TensorShape({}), {true}),
231 /*expected_outputs*/
232 {{CreateTensor<int64>(TensorShape({}), {0}),
233 CreateTensor<int64>(TensorShape({}), {2}),
234 CreateTensor<int64>(TensorShape({}), {4}),
235 CreateTensor<int64>(TensorShape({}), {6})}},
236 /*expected_output_dtypes*/ {DT_VARIANT},
237 /*expected_output_shapes*/ {PartialTensorShape({})},
238 /*expected_cardinality*/ 1,
239 /*breakpoints*/ {0, 1, 9}};
240}
241
242// Test case 10: size=5, shift=2, stride=2, drop_remainder=true.
243TestCase TestCase10() {

Callers 1

Calls 2

PartialTensorShapeClass · 0.85
TensorShapeClass · 0.50

Tested by

no test coverage detected