---
title: GetStorageShape
description: "获取运行时shape。"
url: https://www.hiascend.com/document/detail/zh/canncommercial/latest/maintenref/basicdataapi/atlasopapi_07_00177.html
sourcePath: /source/zh/canncommercial/900/maintenref/basicdataapi/atlasopapi_07_00177.html
indexId: 8a3fed17d1f43a125f35cb6918fdb8fe5f7c34bf72b8322fb6c78f461ad5d17978
---
# GetStorageShape

#### 函数功能

获取运行时shape。


#### 函数原型

```
const Shape &GetStorageShape() const
```


#### 参数说明

无。


#### 返回值说明

运行时shape。


#### 约束说明

无。


#### 调用示例

```
StorageShape shape({3, 256, 256}, {256, 256, 3});
auto storage_shape = shape.GetStorageShape(); // 256,256,3
```
