Sets the original format of a tensor.
void SetOriginFormat(const ge::Format origin_format)
Original format.
For details about the definition of ge::Format, see Format.
None
Tensor t = {{}, {}, {}, {}, nullptr}; t.SetOriginFormat(ge::FORMAT_NHWC); t.SetStorageFormat(ge::FORMAT_NC1HWC0); auto fmt = t.GetOriginFormat(); // ge::FORMAT_NHWC