TensorBaseMalloc
Function Usage
Obtains the memory of the TensorBase object.
The memory is automatically destroyed during tensor object destruction. Therefore, you do not need to destroy the memory by using the function.
Prototype
1 | static APP_ERROR TensorBase::TensorBaseMalloc(TensorBase &tensor); |
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
tensor |
Input |
Obtains the tensor data of the corresponding memory. |
Response Parameters
Data Structure |
Description |
|---|---|
APP_ERROR |
For details about the returned error codes, see APP_ERROR Description. |
Parent topic: TensorBase