aclDestroyTensor

Description

Destroys the aclTensor created by calling the aclCreateTensor API.

Prototype

aclnnStatus aclDestroyTensor(const aclTensor *tensor)

Parameter Description

Parameter

Input/Output

Description

tensor

Input

Pointer to the tensor to be destroyed.

Return Value

0 on success; otherwise, failure. For details about the return codes, see Common API Return Codes.

Constraints

None.

Example

For details about API calls, see the call examples in aclCreateTensor.