ToHost

Function Usage

Transfers the tensor data to the host.
  • If the original memory is transferred by the user through the constructor, the memory needs to be managed and destroyed by the user.
  • If the memory is allocated calling TensorMalloc or Malloc, data is transferred to the host, and the original memory is automatically destroyed.

Prototype

1
APP_ERROR Tensor::ToHost();

Response Parameters

Data Structure

Description

APP_ERROR

For details about the returned error codes, see APP_ERROR Description.