ToDvpp

Function Usage

Transfers tensor data to the DVPP side.

  • 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 by calling TensorMalloc or Malloc, the original memory is automatically destroyed and does not need to be managed by users.
  • When the media data processing function is used, there are restrictions on allocating memory on the DVPP side. For details, see CANN Application Development Guide (C&C++).

Prototype

1
APP_ERROR Tensor::ToDvpp(int32_t deviceId);

Parameters

Parameter

Input/Output

Description

deviceId

Input

Transfers a tensor to the device specified by deviceId.

The deviceId must be a valid device ID.

Response Parameters

Data Structure

Description

APP_ERROR

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