---
title: AoeSetTuningGraph
description: "| 产品 | 是否支持 |"
url: https://www.hiascend.com/document/detail/zh/canncommercial/latest/devaids/aoe/aoeref_16_0009.html
sourcePath: /source/zh/canncommercial/900/devaids/aoe/aoeref_16_0009.html
indexId: 4129252720bbd87afcd59975f7ddeb4f207077dccc7845dd6a2399c61d24eb4661
---
# AoeSetTuningGraph

#### 产品支持情况

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


#### 函数功能

设置调优图。同步接口。


#### 约束说明

请参考接口约束说明。


#### 函数原型

```
AoeStatus AoeSetTuningGraph(uint64_t sessionId, const ge::Graph &tuningGraph)
```


#### 参数说明

| 参数名 | 输入/输出 | 说明 |
| --- | --- | --- |
| sessionId | 输入 | AOE调优的Session id。 |
| tuningGraph | 输入 | 调优图，构建方法请参考“aclgrph接口(https://www.hiascend.comdocument/detail/zh/canncommercial/900/API/ascendgraphapi/atlasgeapi\_07\_0002.html)”。 |


#### 返回值说明

返回0表示成功，返回其它值含义请参见AOE API错误码。
