This class implements a layer that scatters updates over the given data blob.
for( int updateIndex = 0; updateIndex < UpdateCount; ++updateIndex )
data[indices[updateIndex]] = updates[updateIndex];
where indices[...]
is an integer vector of IndexDims
elements which contains coordinates in the first IndexDims
dimensions of the data blob.
There are no settings for this layer.
There are no trainable parameters for this layer.
Layer has 3 inputs:
- The set of objects of any data type. The product of first
IndexDims
dimensions isObjectCount
and the product of the rest of dimensions isObjectSize
. - The set of indices of integer data type of the following shape:
BD_Channels
of the blob must be equal to theIndexDims
- The product of the other dimensions must be equal to the
UpdateCount
.
- The set of updates of the same data type as first input. It must contain
UpdateCount * ObjectSize
elements regardless of shape.
The only output contains updated data of the same size and type as the first input.