---
title: GetOriginFormat
description: "获取原始format。"
url: https://www.hiascend.com/document/detail/zh/canncommercial/latest/maintenref/basicdataapi/atlasopapi_07_00164.html
sourcePath: /source/zh/canncommercial/900/maintenref/basicdataapi/atlasopapi_07_00164.html
indexId: 817de2b7a54d731d80cb6039613d02fe2d4a2775fb6c0ab45e614168b5f2882778
---
# GetOriginFormat

#### 函数功能

获取原始format。


#### 函数原型

```
ge::Format GetOriginFormat() const
```


#### 参数说明

无。


#### 返回值说明

原始format。


#### 约束说明

无。


#### 调用示例

```
ExpandDimsType dim_type("1100");
StorageFormat format(ge::Format::FORMAT_NCHW, ge::Format::FORMAT_C1HWNC0, dim_type);
auto origin_format = format.GetOriginFormat();  // Format::FORMAT_NCHW
```
