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.
1 | static APP_ERROR TensorBase::TensorBaseMalloc(TensorBase &tensor); |
Parameter |
Input/Output |
Description |
|---|---|---|
tensor |
Input |
Obtains the tensor data of the corresponding memory. |
Data Structure |
Description |
|---|---|
APP_ERROR |
For details about the returned error codes, see APP_ERROR Description. |