跳到主要内容

SetStorageFormat

函数功能​

设置运行时format。

函数原型​

void SetStorageFormat(const ge::Format storage_format)

参数说明​

参数输入/输出说明
storage_format输入运行时format。

返回值​

无

约束说明​

无

调用示例​

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