MCPcopy Create free account
hub / github.com/ARM-software/ComputeLibrary / SmallScatterMultiDimDataset

Class SmallScatterMultiDimDataset

tests/datasets/ScatterDataset.h:130–144  ·  view source on GitHub ↗

This dataset represents the (m+1)-D updates/dst case.

Source from the content-addressed store, hash-verified

128
129// This dataset represents the (m+1)-D updates/dst case.
130class SmallScatterMultiDimDataset final : public ScatterDataset
131{
132public:
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
147class SmallScatterMultiIndicesDataset final : public ScatterDataset

Callers 2

Scatter.cppFile · 0.85
ScatterLayer.cppFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected