GatherElements

Description

GatherElements takes two inputsΒ dataΒ andΒ indicesΒ of the same rank r >= 1 and an optional attributeΒ axisΒ that identifies an axis ofΒ dataΒ (by default, the outer-most axis, that is axis 0). It is an indexing operation that produces its output by indexing into the input data tensor at index positions determined by elements of theΒ indicesΒ tensor. Its output shape is the same as the shape ofΒ indicesΒ and consists of one value (gathered from theΒ data) for each element inΒ indices.

 

 

Input parameters

 

specified_outputs_name :Β array, this parameter lets you manually assign custom names to the output tensors of a node.

Β Graphs in :Β cluster, ONNX model architecture.

Β dataΒ (heterogeneous) – T :Β object, tensor of rank r >= 1.
Β indices (heterogeneous) – Tind : object, tensor of int32/int64 indices, with the same rank r as the input. All index values are expected to be within bounds [-s, s-1] along axis of size s. It is an error if any of the index values are out of bounds.

Β Parameters :Β cluster,

axis : integer, which axis to gather on. Negative value means counting dimensions from the back. Accepted range is [-r, r-1] where r = rank(data).
Default value β€œ0”.
Β 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

 

Β outputΒ (heterogeneous) – T :Β object, tensor of the same shape as indices.

Type Constraints

T in (tensor(bfloat16),Β tensor(bool),Β tensor(complex128),Β tensor(complex64),Β tensor(double),Β tensor(float),Β tensor(float16),Β 
tensor(int16),Β tensor(int32),Β tensor(int64),Β tensor(int8),Β tensor(string),Β tensor(uint16),Β tensor(uint32),Β tensor(uint64),Β tensor(uint8)) : Constrain input and output types to any tensor type.

Tind in (tensor(int32),Β tensor(int64)) : Constrain indices to integer types

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