Test case 4: size=8, shift=3, stride=1, drop_remainder=true.
| 139 | |
| 140 | // Test case 4: size=8, shift=3, stride=1, drop_remainder=true. |
| 141 | TestCase 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. |
| 156 | TestCase TestCase5() { |
no test coverage detected