GetViewFormat
Function Usage
Obtains the ViewFormat of an aclTensor. ViewFormat is the logical format of the aclTensor.
Prototype
op::Format GetViewFormat()
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->GetViewFormat(); } |
Parent topic: common_types