1D

Description

Adds to the ptr input array a 1D array (of typeΒ BOOL,Β SGL,Β INT,Β UINT, orΒ STRING) at a specified index. Type : polymorphic.

 

 

Input parameters

 

Β 1D Input Data :Β array,Β 1D array of data with any type : integers (signed/unsigned), floats, doubles, booleans, or strings.

Β Data in :Β array,

Β input_order :Β integer,Β defines the position of the output within the data array. It corresponds to the index assigned to the output when it is created (via the index parameter).
Β Inputs Info :Β cluster

Β inputs_ptr :Β integer,Β represents a pre-allocated device memory address (for example, a CUDA device pointer) where the input tensor data is already stored.
Β 
inputs_shapes :Β array,Β 
specifies the shape of the output tensor. Since the data is written into a pre-allocated device buffer, this shape allows the runtime to interpret the memory layout correctly.
Β 
inputs_ranks :Β integer,Β 
indicates the rank of the tensor, i.e. the number of dimensions (Scalar = 0, 1D = 1, 2D = 2, etc.).
Β 
inputs_types :Β enum,Β 
defines the ONNX tensor type as an enumerated value (e.g. FLOAT, INT64, STRING).

Β input order : integer,Β defines the position of the input within the data array. It corresponds to the index assigned to the input when it is created (via theΒ indexΒ parameter).

Output parameters

 

Β Data in :Β array,

Β input_order :Β integer,Β defines the position of the output within the data array. It corresponds to the index assigned to the output when it is created (via the index parameter).
Β Inputs Info :Β cluster

Β inputs_ptr :Β integer,Β represents a pre-allocated device memory address (for example, a CUDA device pointer) where the input tensor data is already stored.
Β 
inputs_shapes :Β array,Β 
specifies the shape of the output tensor. Since the data is written into a pre-allocated device buffer, this shape allows the runtime to interpret the memory layout correctly.
Β 
inputs_ranks :Β integer,Β 
indicates the rank of the tensor, i.e. the number of dimensions (Scalar = 0, 1D = 1, 2D = 2, etc.).
Β 
inputs_types :Β enum,Β 
defines the ONNX tensor type as an enumerated value (e.g. FLOAT, INT64, STRING).

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 Accelerator library to run it).

Table of Contents