目录

Constructor

Function Description

Constructs a format, including the original format, storage format, and dimension expansion rule.

Function Prototype

StorageFormat()
StorageFormat(const ge::Format origin_format, const ge::Format storage_format, const ExpandDimsType &expand_dims_type)

Parameters

Parameter Input/Output Description
origin_format Input Original format.
storage_format Input Storage format.
expand_dims_type Input Dimension expansion rule.

Return Value

A StorageFormat object with origin_format, storage_format, and expand_dims_type specified

Restrictions

None

Calling Example

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