Create Tensor

Description

Allocates size bytes of linear memory on the device and returns a tensor to the allocated memory. Type : polymorphic.

 

Documentation illustration (illustration unavailable in the archive).

Input parameters

 

Documentation illustration (illustration unavailable in the archive). type : array or float, tensor (can be a scalar, 1D, 2D, 3D, 4D, 5D, 6D array).
Documentation illustration (illustration unavailable in the archive). shape : array, tensor shape.

Output parameters

 

Documentation illustration (illustration unavailable in the archive). Tensor out : class

Examples

All these examples 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).

Documentation illustration (illustration unavailable in the archive).