Versioned name: ReduceSum-1
Category: Reduction
Short description: ReduceSum operation performs reduction with addition of the 1st input tensor in slices specified by the 2nd input.
Attributes
True
it holds axes that are used for reduction. For each such axis, output dimension is equal to 1.boolean
Inputs
Outputs
shape[i] = shapeOf(input1)[i]
for all i
that is not in the list of axes from the 2nd input. For dimensions from the 2nd input tensor, shape[i] == 1
if keep_dims == True
, or i
-th dimension is removed from the output otherwise.Detailed Description
Each element in the output is the result of reduction with addition operation along dimensions specified by the 2nd input:
output[i0, i1, ..., iN] = sum[j0,..., jN](x[j0, ..., jN]**2))
Where indices i0, ..., iN run through all valid indices for the 1st input and summation sum[j0, ..., jN]
have jk = ik
for those dimensions k
that are not in the set of indices specified by the 2nd input of the operation. Corner cases:
Example