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

Function TestCase6

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

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

Source from the content-addressed store, hash-verified

171
172// Test case 6: size=2, shift=8, stride=1, drop_remainder=true.
173TestCase TestCase6() {
174 return {/*range_data_param*/ {0, 7, 1},
175 /*size*/ CreateTensor<int64>(TensorShape({}), {2}),
176 /*shift*/ CreateTensor<int64>(TensorShape({}), {8}),
177 /*stride*/ CreateTensor<int64>(TensorShape({}), {1}),
178 /*drop_remainder*/
179 CreateTensor<bool>(TensorShape({}), {true}),
180 /*expected_outputs*/
181 {{CreateTensor<int64>(TensorShape({}), {0}),
182 CreateTensor<int64>(TensorShape({}), {1})}},
183 /*expected_output_dtypes*/ {DT_VARIANT},
184 /*expected_output_shapes*/ {PartialTensorShape({})},
185 /*expected_cardinality*/ 1,
186 /*breakpoints*/ {0, 1, 9}};
187}
188
189// Test case 7: size=2, shift=2, stride=8, drop_remainder=false.
190TestCase TestCase7() {

Callers 1

Calls 2

PartialTensorShapeClass · 0.85
TensorShapeClass · 0.50

Tested by

no test coverage detected