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

Function TestCase4

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

Test case 4: size=8, shift=3, stride=1, drop_remainder=true.

Source from the content-addressed store, hash-verified

139
140// Test case 4: size=8, shift=3, stride=1, drop_remainder=true.
141TestCase TestCase4() {
142 return {/*range_data_param*/ {0, 7, 1},
143 /*size*/ CreateTensor<int64>(TensorShape({}), {8}),
144 /*shift*/ CreateTensor<int64>(TensorShape({}), {3}),
145 /*stride*/ CreateTensor<int64>(TensorShape({}), {1}),
146 /*drop_remainder*/
147 CreateTensor<bool>(TensorShape({}), {true}),
148 /*expected_outputs*/ {},
149 /*expected_output_dtypes*/ {DT_VARIANT},
150 /*expected_output_shapes*/ {PartialTensorShape({})},
151 /*expected_cardinality*/ 0,
152 /*breakpoints*/ {0, 1, 9}};
153}
154
155// Test case 5: size=2, shift=8, stride=1, drop_remainder=false.
156TestCase TestCase5() {

Callers 1

Calls 2

PartialTensorShapeClass · 0.85
TensorShapeClass · 0.50

Tested by

no test coverage detected