Test case 7: size=2, shift=2, stride=8, drop_remainder=false.
| 188 | |
| 189 | // Test case 7: size=2, shift=2, stride=8, drop_remainder=false. |
| 190 | TestCase TestCase7() { |
| 191 | return {/*range_data_param*/ {0, 7, 1}, |
| 192 | /*size*/ CreateTensor<int64>(TensorShape({}), {2}), |
| 193 | /*shift*/ CreateTensor<int64>(TensorShape({}), {2}), |
| 194 | /*stride*/ CreateTensor<int64>(TensorShape({}), {8}), |
| 195 | /*drop_remainder*/ |
| 196 | CreateTensor<bool>(TensorShape({}), {false}), |
| 197 | /*expected_outputs*/ |
| 198 | {{CreateTensor<int64>(TensorShape({}), {0})}, |
| 199 | {CreateTensor<int64>(TensorShape({}), {2})}, |
| 200 | {CreateTensor<int64>(TensorShape({}), {4})}, |
| 201 | {CreateTensor<int64>(TensorShape({}), {6})}}, |
| 202 | /*expected_output_dtypes*/ {DT_VARIANT}, |
| 203 | /*expected_output_shapes*/ {PartialTensorShape({})}, |
| 204 | /*expected_cardinality*/ 4, |
| 205 | /*breakpoints*/ {0, 1, 9}}; |
| 206 | } |
| 207 | |
| 208 | // Test case 8: size=2, shift=2, stride=8, drop_remainder=true. |
| 209 | TestCase TestCase8() { |
no test coverage detected