目录

SetStorageFormat

Function Description

Sets the storage format.

Function Prototype

void SetStorageFormat(const ge::Format storage_format)

Parameters

Parameter Input/Output Description
storage_format Input Storage format.

Return Value

None

Restrictions

None

Calling Example

ExpandDimsType dim_type("1100");
StorageFormat format(ge::Format::FORMAT_NCHW, ge::Format::FORMAT_C1HWNC0, dim_type);
format.SetStorageFormat(ge::Format::FORMAT_NC);