TensorMalloc
Function Usage
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.
Prototype
1 | static APP_ERROR Tensor::TensorMalloc(Tensor &tensor); |
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
tensor |
Output |
Tensor whose memory is to be allocated. Use the constructor that does not transfer memory to construct it. |
Response Parameters
Data Structure |
Description |
|---|---|
APP_ERROR |
For details about the returned error codes, see APP_ERROR Description. |
Parent topic: Tensor