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