.. _op_ai_onnx_ReduceSum-11: ReduceSum - version 11 ====================== This page documents version **11** of operator **ReduceSum**. See :doc:`ReduceSum` for the latest version (since version 13). - **Domain**: ``ai.onnx`` - **Since version**: 11 Computes the sum of the input tensor's elements along the provided axes. The resulting tensor has the same rank as the input if keepdims equals 1. If keepdims equals 0, then the resulting tensor has the reduced dimension pruned. The axes attribute specifies which dimensions to reduce. Negative axes are supported. If axes is not provided, all dimensions are reduced. If noop_with_empty_axes is set and axes is empty, the input tensor is returned unchanged. **Inputs** - **data** (*T*): An input tensor. **Outputs** - **reduced** (*T*): Reduced output tensor. **Attributes** - **axes** (*int[]*): A list of integers, along which to reduce. The default is to reduce over all the dimensions of the input tensor. Accepted range is [-r, r-1] where r = rank(data). - **keepdims** (*int*): Keep the reduced dimension or not, default 1 means keep reduced dimension. **Type Constraints** - **T**: Constrain input and output types to high-precision numeric tensors. Allowed types: tensor(double), tensor(float), tensor(float16), tensor(int32), tensor(int64), tensor(uint32), tensor(uint64). Differences with previous version (1) ------------------------------------- **SchemaDiff**: ``ReduceSum`` (domain ``'ai.onnx'``) * old version: 1 * new version: 11 * breaking: no **Documentation:** * line similarity: 0.60 (+3/-1 lines) .. code-block:: diff --- ReduceSum v1 +++ ReduceSum v11 @@ -1,4 +1,6 @@ Computes the sum of the input tensor's elements along the provided axes. The resulting tensor has the same rank as the input if keepdims equals 1. If keepdims equals 0, then the resulting tensor has the reduced dimension pruned. -The axes attribute specifies which dimensions to reduce. If axes is not provided, all dimensions are reduced. +The axes attribute specifies which dimensions to reduce. Negative axes are supported. +If axes is not provided, all dimensions are reduced. +If noop_with_empty_axes is set and axes is empty, the input tensor is returned unchanged.