GetStorageFormat
Description
Obtains the StorageFormat of an aclTensor.
StorageFormat indicates the layout format of the aclTensor in the memory, such as NCHW and ND.
Prototype
op::Format GetStorageFormat()
Parameters
None
Return Value
op::Format (ge::Format), an enumeration that contains different formats, such as NCHW and ND.
Constraints
None
Examples
1 2 3 | void Func(const aclTensor *input) { auto format = input->GetStorageFormat(); } |
Parent topic: common_types
