GetOriginalFormat
Function Usage
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
Returns
op::Format (ge::Format), which is an enumeration that contains multiple formats, such as NCHW and ND.
Constraints
None
Example
1 2 3 |
void Func(const aclTensor *input) { auto format = input->GetOriginalFormat(); } |
Parent topic: common_types