aclSetTensorStorageShape (Deprecated)
This API will be deprecated in future releases. Use aclSetTensorShape instead.
Description
Sets the actual dims of the tensor after creating the tensor description by calling aclCreateTensorDesc. .
The
Prototype
aclError aclSetTensorStorageShape(aclTensorDesc *desc, int numDims, const int64_t *dims)
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
desc |
Output |
Pointer to data of the aclTensorDesc type. Call aclCreateTensorDesc to create data of the aclTensorDesc type in advance. |
numDims |
Input |
Number of dimensions. |
dims |
Input |
Pointer to dims. |
Returns
The value 0 indicates success, and other values indicate failure. For details, see aclError.
Parent topic: aclTensorDesc