fn
scatter_prod_op
→TensorImplPtrint scatter_prod_op(const int & base, const int & indices, const int & src, int dim)Scatter with multiplicative reduction.
Math
Parameters
base, indices, src, dimSame semantics as
scatter_add_op.Returns
TensorImplPtrSame shape and dtype as base.
Notes
Each operand's gradient is grad at its position times the product of
the other operands there — out / operand where the operand is not
zero, and computed without that division where it is, so a zero operand
gets the others' product rather than NaN.