TensorBaseMalloc
Function Usage
Obtains the memory of the TensorBase object.
The memory is automatically destroyed when the tensor object is destructed. Therefore, you do not need to destroy the memory by using the function.
Prototype
static APP_ERROR TensorBaseMalloc(TensorBase &tensor);
Parameter Description
Parameter |
Input/Output |
Description |
|---|---|---|
tensor |
Input |
Obtains the tensor data of the corresponding memory. |
Return Parameter Description
Data Structure |
Description |
|---|---|
APP_ERROR |
Error code returned during program execution. For details, see the MxBase/ErrorCode/ErrorCode.h file. |
Parent topic: TensorBase