GetFormat
Function Usage
Obtains the format of a tensor described by TensorDesc.
Prototype
1 | Format GetFormat() const |
Parameters
None
Returns
Format type, that is, format information of the tensor described by TensorDesc.
Exception Handling
None
Constraints
The returned format is obtained through value copy (deep copy). This API modifies the returned format, which does not affect the existing format information in TensorDesc.
Parent topic: TensorDesc