跳到主要内容

SetOriginFormat

函数功能

设置原始format。

函数原型

void SetOriginFormat(const ge::Format origin_format)

参数说明

参数输入/输出说明
origin_format输入原始format。

返回值

约束说明

调用示例

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