Allocates the tensor memory. The memory allocated by this API does not require user management, and is destroyed internally.
This API will be deleted in December, 2025. Malloc is recommended.
1 | static APP_ERROR Tensor::TensorMalloc(Tensor &tensor); |
Parameter |
Input/Output |
Description |
|---|---|---|
tensor |
Output |
Tensor whose memory is to be allocated. Use the constructor that does not transfer memory to construct it. |
Data Structure |
Description |
|---|---|
APP_ERROR |
For details about the returned error codes, see APP_ERROR Description. |