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

#### 函数功能

获取原始shape。


#### 函数原型

```
const Shape &GetShape() const
```


#### 参数说明

无。


#### 返回值说明

原始shape。


#### 约束说明

无。


#### 调用示例

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