module onnxrt.ops_cpu.op_reduce_sum
#
Short summary#
module mlprodict.onnxrt.ops_cpu.op_reduce_sum
Runtime operator.
Classes#
class |
truncated documentation |
---|---|
ReduceSum ========= Computes the sum of the input tensor’s element along the provided axes. The resulting tensor has the … |
|
ReduceSum ========= Computes the sum of the input tensor’s element along the provided axes. The resulting tensor has the … |
Properties#
property |
truncated documentation |
---|---|
|
Returns the list of arguments as well as the list of parameters with the default values (close to the signature). … |
|
Returns the list of arguments as well as the list of parameters with the default values (close to the signature). … |
|
Returns the list of arguments as well as the list of parameters with the default values (close to the signature). … |
|
Returns the list of arguments as well as the list of parameters with the default values (close to the signature). … |
|
Returns the list of modified parameters. |
|
Returns the list of modified parameters. |
|
Returns the list of modified parameters. |
|
Returns the list of modified parameters. |
|
Returns the list of optional arguments. |
|
Returns the list of optional arguments. |
|
Returns the list of optional arguments. |
|
Returns the list of optional arguments. |
|
Returns the list of optional arguments. |
|
Returns the list of optional arguments. |
|
Returns the list of optional arguments. |
|
Returns the list of optional arguments. |
|
Returns all parameters in a dictionary. |
|
Returns all parameters in a dictionary. |
|
Returns all parameters in a dictionary. |
|
Returns all parameters in a dictionary. |
Methods#
method |
truncated documentation |
---|---|
|
|
Calls method |
|
Calls method |
Documentation#
Runtime operator.
- mlprodict.onnxrt.ops_cpu.op_reduce_sum.ReduceSum#
alias of
ReduceSum_13
- class mlprodict.onnxrt.ops_cpu.op_reduce_sum.ReduceSum_1(onnx_node, desc=None, **options)#
Bases:
OpRunReduceNumpy
- __init__(onnx_node, desc=None, **options)#
- _run(data, attributes=None, verbose=0, fLOG=None)#
Should be overwritten.
- class mlprodict.onnxrt.ops_cpu.op_reduce_sum.ReduceSum_11(onnx_node, desc=None, **options)#
Bases:
ReduceSum_1
- __init__(onnx_node, desc=None, **options)#
- class mlprodict.onnxrt.ops_cpu.op_reduce_sum.ReduceSum_13(onnx_node, desc=None, **options)#
Bases:
OpRunReduceNumpy
ReduceSum#
Computes the sum of the input tensor’s element 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 above behavior is similar to numpy, with the exception that numpy defaults keepdims to False instead of True.
Attributes
keepdims: Keep the reduced dimension or not, default 1 means keep reduced dimension. Default value is
namekeepdimsi1typeINT
(INT)noop_with_empty_axes: Defines behavior if ‘axes’ is empty. Default behavior with ‘false’ is to reduce all axes. When axes is empty and this attribute is set to true, input tensor will not be reduced,and the output tensor would be equivalent to input tensor. Default value is
namenoopwithemptyaxesi0typeINT
(INT)
Inputs
Between 1 and 2 inputs.
data (heterogeneous)T: An input tensor.
axes (optional, heterogeneous)tensor(int64): Optional input list of integers, along which to reduce. The default is to reduce over all the dimensions of the input tensor if ‘noop_with_empty_axes’ is false, else act as an Identity op when ‘noop_with_empty_axes’ is true. Accepted range is [-r, r-1] where r = rank(data).
Outputs
reduced (heterogeneous)T: Reduced output tensor.
Type Constraints
T tensor(uint32), tensor(uint64), tensor(int32), tensor(int64), tensor(float16), tensor(float), tensor(double), tensor(bfloat16): Constrain input and output types to high-precision numeric tensors.
Version
Onnx name: ReduceSum
This version of the operator has been available since version 13.
Runtime implementation:
ReduceSum
- __init__(onnx_node, desc=None, **options)#
- _run(data, axes=None, attributes=None, verbose=0, fLOG=None)#
Should be overwritten.
- _run_no_checks_(x, axes=None, attributes=None, verbose=0, fLOG=None)#
- run(data, axes=None, attributes=None, verbose=0, fLOG=None)#
Calls method
_run
.