This dataset represents the (m+1)-D updates/dst case.
| 128 | |
| 129 | // This dataset represents the (m+1)-D updates/dst case. |
| 130 | class SmallScatterMultiDimDataset final : public ScatterDataset |
| 131 | { |
| 132 | public: |
| 133 | SmallScatterMultiDimDataset() |
| 134 | { |
| 135 | // NOTE: Config is src, updates, indices, output. |
| 136 | // - In this config, the dim replaced is the final number (largest tensor dimension) |
| 137 | // - Largest "updates" dim should match y-dim of indices. |
| 138 | // - src/updates/dst should all have same number of dims. Indices should be 2D. |
| 139 | add_config(TensorShape(6U, 5U), TensorShape(6U, 2U), TensorShape(1U, 2U), TensorShape(6U, 5U)); |
| 140 | add_config(TensorShape(9U, 3U, 4U), TensorShape(9U, 3U, 2U), TensorShape(1U, 2U), TensorShape(9U, 3U, 4U)); |
| 141 | add_config(TensorShape(17U, 3U, 2U, 4U), TensorShape(17U, 3U, 2U, 7U), TensorShape(1U, 7U), |
| 142 | TensorShape(17U, 3U, 2U, 4U)); |
| 143 | } |
| 144 | }; |
| 145 | |
| 146 | // This dataset represents the (m+1)-D updates tensor, (m+n)-d output tensor cases |
| 147 | class SmallScatterMultiIndicesDataset final : public ScatterDataset |
no outgoing calls
no test coverage detected