---
title: SetOriginShape
description: "向TensorDesc中设置Tensor的原始Shape。"
url: https://www.hiascend.com/document/detail/zh/canncommercial/latest/maintenref/basicdataapi/atlasopapi_07_00449.html
sourcePath: /source/zh/canncommercial/900/maintenref/basicdataapi/atlasopapi_07_00449.html
indexId: d07c117d5e381b6cdbffc429643ad5150ca318bd5f93b33cc61851d3a7107d7778
---
# SetOriginShape

#### 函数功能

向TensorDesc中设置Tensor的原始Shape。

该Shape是指原始网络模型的Shape。


#### 函数原型

```
void SetOriginShape(const Shape &originShape)
```


#### 参数说明

| 参数名 | 输入/输出 | 描述 |
| --- | --- | --- |
| originShape | 输入 | 向TensorDesc设置原始的originShape对象。 |


#### 返回值

无。


#### 异常处理

无。


#### 约束说明

无。
