aclSetTensorStorageFormat (Deprecated)

This API will be deprecated in future releases. Use aclSetTensorFormat instead.

Description

Sets the actual format of the tensor after creating the tensor description by calling aclCreateTensorDesc. .

The Atlas Training Series Product does not support this API.

Prototype

aclError aclSetTensorStorageFormat(aclTensorDesc *desc, aclFormat format)

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.

format

Input

Target format

Returns

The value 0 indicates success, and other values indicate failure. For details, see aclError.