---
title: SetInputFormat
description: "| 产品 | 是否支持 |"
url: "https://www.hiascend.com/document/detail/zh/TensorFlowCommunity/920/Convergence/tfscopedevg/atlassfpapi_07_0130.html"
---

# SetInputFormat

#### 产品支持情况

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


#### 函数功能

设置InnerNode输入格式。


#### 函数原型

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


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


#### 参数说明

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


#### 返回值

无。


#### 约束说明

无。
