Function: set_tensor_storage_format

This API will be deprecated in future releases. Use acl.set_tensor_format instead.

C Prototype

aclError aclSetTensorStorageFormat(aclTensorDesc *desc, aclFormat format)

Python Function

ret = acl.set_tensor_storage_format(desc, format)

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.

The Atlas Training Series Product does not support this API.

Input Description

desc: int, pointer address of aclTensorDesc.

Call acl.create_tensor_desc to create data of the aclTensorDesc type in advance.

format: int, format of the specified tensor description.

Return Value

ret: int, error code.

Restrictions

None