Test case 9: size=4, shift=2, stride=2, drop_remainder=true.
| 222 | |
| 223 | // Test case 9: size=4, shift=2, stride=2, drop_remainder=true. |
| 224 | TestCase 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. |
| 243 | TestCase TestCase10() { |
no test coverage detected