Function: set_tensor_storage_format
Applicability
Product |
Supported (√/x) |
|---|---|
√ |
|
√ |
|
x |
|
√ |
|
√ |
Function Usage
Call acl.set_tensor_storage_format to set the actual Format of the tensor after creating the tensor description by calling acl.create_tensor_desc. This API is mainly used in the PyTorch scenarios.
This API will be deprecated in future releases. Use acl.set_tensor_format instead.
Prototype
- C Prototype
1aclError aclSetTensorStorageFormat(aclTensorDesc *desc, aclFormat format)
- Python Function
1ret = acl.set_tensor_storage_format(desc, format)
Parameter Description
Parameter |
Description |
|---|---|
desc |
Int, pointer address of the aclTensorDesc type. Call acl.create_tensor_desc to create data of the aclTensorDesc type in advance. |
format |
Int, format of the specified tensor description. |
Return Value Description
Return Value |
Description |
|---|---|
ret |
Int, error code.
|
Parent topic: aclmdlTensorDesc