aclDestroyTensor
Function Usage
Destroys the aclTensor created by calling aclCreateTensor.
Prototype
aclnnStatus aclDestroyTensor(const aclTensor *tensor)
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
tensor |
Input |
Pointer to the tensor to be destroyed. |
Returns
0 on success; else, failure. For details about the return codes, see Common APIs and Return Codes.
Constraints
None
Examples
For details about API calls, see the examples in aclCreateTensor.
Parent topic: Common APIs