Welcome to our Support Center

ReduceSumInteger

Description

Computes the sum of the low-precision input tensor’s element along the provided axes. The resulting tensor has the same rank as the input if keepdims equal 1. If keepdims equal 0, then the resulting tensor have the reduced dimension pruned. The above behavior is similar to numpy, with the exception that numpy default keepdims to False instead of True.

 

Input parameters

 

specified_outputs_namearray, this parameter lets you manually assign custom names to the output tensors of a node.
data (heterogeneous) – T1 : object, an input tensor.

 Parameters : cluster,

axes : array, a list of integers, along which to reduce. The default is to reduce over all the dimensions of the input tensor.
Default value “empty”.
keepdims : boolean, keep the reduced dimension or not, true mean keep reduced dimension.
Default value “True”.
 training? : boolean, whether the layer is in training mode (can store data for backward).
Default value “True”.
 lda coeff : float, defines the coefficient by which the loss derivative will be multiplied before being sent to the previous layer (since during the backward run we go backwards).
Default value “1”.

 name (optional) : string, name of the node.

Output parameters

 

 reduced (heterogeneous) – T2 : object, reduced output tensor.

Type Constraints

T1 in (tensor(int8)tensor(uint8)) : Constrain input type to 8-bit integer tensor.

T2 in (tensor(int32)tensor(uint32)) : Constrain output data type to 32-bit integer tensor.T2 must be tensor(uint32) when T1 is tensor(uint8),or must be tensor(int32) when T1 is tensor(int8).

Example

All these exemples are snippets PNG, you can drop these Snippet onto the block diagram and get the depicted code added to your VI (Do not forget to install Deep Learning library to run it).
Table of Contents