GetOriginalFormat
Description
Obtains the OriginFormat of an aclTensor.
OriginFormat indicates the original format of the aclTensor before it passes through the transdata node (if any).
Prototype
op::Format GetOriginalFormat()
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->GetOriginalFormat(); } |
Parent topic: common_types
