Test case 3: size=8, shift=3, stride=1, drop_remainder=false.
| 112 | |
| 113 | // Test case 3: size=8, shift=3, stride=1, drop_remainder=false. |
| 114 | TestCase TestCase3() { |
| 115 | return {/*range_data_param*/ {0, 7, 1}, |
| 116 | /*size*/ CreateTensor<int64>(TensorShape({}), {8}), |
| 117 | /*shift*/ CreateTensor<int64>(TensorShape({}), {3}), |
| 118 | /*stride*/ CreateTensor<int64>(TensorShape({}), {1}), |
| 119 | /*drop_remainder*/ |
| 120 | CreateTensor<bool>(TensorShape({}), {false}), |
| 121 | /*expected_outputs*/ |
| 122 | {{CreateTensor<int64>(TensorShape({}), {0}), |
| 123 | CreateTensor<int64>(TensorShape({}), {1}), |
| 124 | CreateTensor<int64>(TensorShape({}), {2}), |
| 125 | CreateTensor<int64>(TensorShape({}), {3}), |
| 126 | CreateTensor<int64>(TensorShape({}), {4}), |
| 127 | CreateTensor<int64>(TensorShape({}), {5}), |
| 128 | CreateTensor<int64>(TensorShape({}), {6})}, |
| 129 | {CreateTensor<int64>(TensorShape({}), {3}), |
| 130 | CreateTensor<int64>(TensorShape({}), {4}), |
| 131 | CreateTensor<int64>(TensorShape({}), {5}), |
| 132 | CreateTensor<int64>(TensorShape({}), {6})}, |
| 133 | {CreateTensor<int64>(TensorShape({}), {6})}}, |
| 134 | /*expected_output_dtypes*/ {DT_VARIANT}, |
| 135 | /*expected_output_shapes*/ {PartialTensorShape({})}, |
| 136 | /*expected_cardinality*/ 3, |
| 137 | /*breakpoints*/ {0, 1, 9}}; |
| 138 | } |
| 139 | |
| 140 | // Test case 4: size=8, shift=3, stride=1, drop_remainder=true. |
| 141 | TestCase TestCase4() { |
no test coverage detected