This dataset represents the (m+1)-D updates tensor, (m+n)-d output tensor cases
| 145 | |
| 146 | // This dataset represents the (m+1)-D updates tensor, (m+n)-d output tensor cases |
| 147 | class SmallScatterMultiIndicesDataset final : public ScatterDataset |
| 148 | { |
| 149 | public: |
| 150 | SmallScatterMultiIndicesDataset() |
| 151 | { |
| 152 | // NOTE: Config is src, updates, indices, output. |
| 153 | // NOTE: indices.shape.x = src.num_dimensions - updates.num_dimensions + 1 |
| 154 | |
| 155 | // index length is 2 |
| 156 | add_config(TensorShape(6U, 5U, 2U), TensorShape(6U, 4U), TensorShape(2U, 4U), TensorShape(6U, 5U, 2U)); |
| 157 | add_config(TensorShape(17U, 3U, 3U, 2U), TensorShape(17U, 3U, 2U), TensorShape(2U, 2U), |
| 158 | TensorShape(17U, 3U, 3U, 2U)); |
| 159 | add_config(TensorShape(11U, 3U, 3U, 2U, 4U), TensorShape(11U, 3U, 3U, 4U), TensorShape(2U, 4U), |
| 160 | TensorShape(11U, 3U, 3U, 2U, 4U)); |
| 161 | add_config(TensorShape(5U, 4U, 3U, 3U, 2U, 4U), TensorShape(5U, 4U, 3U, 3U, 5U), TensorShape(2U, 5U), |
| 162 | TensorShape(5U, 4U, 3U, 3U, 2U, 4U)); |
| 163 | |
| 164 | // index length is 3 |
| 165 | add_config(TensorShape(4U, 3U, 2U, 2U), TensorShape(4U, 2U), TensorShape(3U, 2U), TensorShape(4U, 3U, 2U, 2U)); |
| 166 | add_config(TensorShape(17U, 4U, 3U, 2U, 2U), TensorShape(17U, 4U, 4U), TensorShape(3U, 4U), |
| 167 | TensorShape(17U, 4U, 3U, 2U, 2U)); |
| 168 | add_config(TensorShape(10U, 4U, 5U, 3U, 2U, 2U), TensorShape(10U, 4U, 5U, 3U), TensorShape(3U, 3U), |
| 169 | TensorShape(10U, 4U, 5U, 3U, 2U, 2U)); |
| 170 | |
| 171 | // index length is 4 |
| 172 | add_config(TensorShape(35U, 4U, 3U, 2U, 2U), TensorShape(35U, 4U), TensorShape(4U, 4U), |
| 173 | TensorShape(35U, 4U, 3U, 2U, 2U)); |
| 174 | add_config(TensorShape(10U, 4U, 5U, 3U, 2U, 2U), TensorShape(10U, 4U, 3U), TensorShape(4U, 3U), |
| 175 | TensorShape(10U, 4U, 5U, 3U, 2U, 2U)); |
| 176 | |
| 177 | // index length is 5 |
| 178 | add_config(TensorShape(10U, 4U, 5U, 3U, 2U, 2U), TensorShape(10U, 3U), TensorShape(5U, 3U), |
| 179 | TensorShape(10U, 4U, 5U, 3U, 2U, 2U)); |
| 180 | } |
| 181 | }; |
| 182 | |
| 183 | // This dataset represents the (m+k)-D updates tensor, (k+1)-d indices tensor and (m+n)-d output tensor cases |
| 184 | class SmallScatterBatchedDataset final : public ScatterDataset |
no outgoing calls
no test coverage detected