Function marian::scatter¶
Defined in File expression_operators.cpp
Function Documentation¶
-
Expr
marian
::
scatter
(Expr a, int axis, Expr indices, Expr source)¶ Scatter elements from source along an axis into a.
Unindexed elements from a remain unchanged. This is the reverse operation to gather.
- Return
Scattered expression with the same shape as
a
now containing values fromsource
in positionsindices
- Note
source
andindices
must have the same rank- Note
In this version
source
andindicies
must have the same shape- Parameters
a
: The input expressionaxis
: The axis along which to indexindices
: The indices to be scatteredsource
: Expression with values to scatter.