Device To Host & Free

Description

Copies data between device and host and free the tensor on the device. Type : polymorphic.

Note : if “type” is empty, then all pointer values are copied, otherwise, only values of the size of the initialized “type” are copied.

 

 

Documentation illustration (illustration unavailable in the archive).

Input parameters

 

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

Output parameters

 

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

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).