fn
scatter_add_op
→TensorImplPtrint scatter_add_op(const int & base, const int & indices, const int & src, int dim)Python wrappers
Public Python APIs implemented by this engine symbol.User-facing scatter-add: out = base with src accumulated at positions given by indices along dim.
Math
Parameters
baseTensorImplPtrTensor providing the initial values; same shape as the output.
indicesTensorImplPtrInteger tensor indexing into
base along dim. Shape matches src.srcTensorImplPtrValues to add.
dimintAxis along which scattering occurs.
Returns
TensorImplPtrSame shape and dtype as base.
Notes
Full autograd support. Gradients: , .