---
title: GetOriginShape
description: "获取原始shape。"
url: https://www.hiascend.com/document/detail/zh/canncommercial/latest/maintenref/basicdataapi/atlasopapi_07_00176.html
sourcePath: /source/zh/canncommercial/900/maintenref/basicdataapi/atlasopapi_07_00176.html
indexId: 52fa86deec918ac4fc6ef8f876ad68899265d29bd9264ce2d3b07dc9622efb0d78
---
# GetOriginShape

#### 函数功能

获取原始shape。


#### 函数原型

```
const Shape &GetOriginShape() const
```


#### 参数说明

无。


#### 返回值说明

原始shape。


#### 约束说明

无。


#### 调用示例

```
StorageShape shape({3, 256, 256}, {256, 256, 3});
auto origin_shape = shape.GetOriginShape(); // 3,256,256
```
