---
title: MutableStorageShape
description: "获取可写的运行时shape。"
url: https://www.hiascend.com/document/detail/zh/canncommercial/latest/maintenref/basicdataapi/atlasopapi_07_00179.html
sourcePath: /source/zh/canncommercial/900/maintenref/basicdataapi/atlasopapi_07_00179.html
indexId: 22678fa7fe2d6688e690fac6fdb1213264313f7cc2c4005b3cd2852114bf25c478
---
# MutableStorageShape

#### 函数功能

获取可写的运行时shape。


#### 函数原型

```
Shape &MutableStorageShape()
```


#### 参数说明

无。


#### 返回值说明

可写的运行时shape。


#### 约束说明

无。


#### 调用示例

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