GetFormat

Description

Obtains the format of a tensor described by TensorDesc.

Prototype

Format GetFormat() const

Parameters

None

Returns

Format type, that is, format information of the tensor described by TensorDesc.

Exception Handling

None

Restrictions

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.