IsGraphNeedRebuild

函数功能

图是否需要重新编译。

函数原型

bool IsGraphNeedRebuild(uint32_t graphId)

参数说明

参数名

输入/输出

描述

graphId

输入

子图对应的id。

返回值

参数名

类型

描述

-

bool

  • False:图可以正常调用RunGraphAsync。
  • True:需要RemoveGraph后,重新AddGraph和BuildGraph。

约束说明

无。

产品支持情况

Atlas 推理系列产品(Ascend 310P处理器),支持

Atlas 训练系列产品,支持

Atlas A2训练系列产品,支持

Atlas 200/300/500 推理产品,不支持

Atlas 200/500 A2推理产品,不支持