---
title: SetDynamicInputFormat
description: "| 产品 | 是否支持 |"
url: https://www.hiascend.com/document/detail/zh/TensorFlowCommunity/latest/Convergence/tfscopedevg/atlassfpapi_07_0132.html
sourcePath: /source/zh/TensorFlowCommunity/910/Convergence/tfscopedevg/atlassfpapi_07_0132.html
indexId: 44302a08e3eb2a61d79c81d63cb15591fedebe934d43dc11ff72d23e8d51ce7683
---
# SetDynamicInputFormat

#### 产品支持情况

| 产品 | 是否支持 |
| --- | --- |
| Ascend 950PR / Ascend 950DT | √ |
| Atlas A3 训练系列产品 / Atlas A3 推理系列产品 | √ |
| Atlas A2 训练系列产品 / Atlas A2 推理系列产品 | √ |
| Atlas 200I/500 A2 推理产品 | √ |
| Atlas 推理系列产品 | √ |
| Atlas 训练系列产品 | √ |


#### 函数功能

设置DynamicInput格式。


#### 函数原型

数据类型为string的接口后续版本会废弃，建议使用数据类型为非string的接口。


```
ge::graphStatus SetDynamicInputFormat(const std::string &input_name, uint32_t index, const std::string &format);
ge::graphStatus SetDynamicInputFormat(const char_t *input_name, uint32_t index, const char_t *format);
```


#### 参数说明

| 参数名 | 输入/输出 | 描述 |
| --- | --- | --- |
| input\_name | 输入 | InnerNode输入算子名称 |
| index | 输入 | InnerNode输入算子index信息 |
| format | 输入 | InnerNode输入算子格式信息 |


#### 返回值

返回ge::graphStatus类型的状态码。ge::GRAPH_SUCCESS表示成功，返回值其他表示失败。


#### 约束说明

无。
