Graph::DestroyGraph
销毁整个Graph。该接口在graph.h中定义。
只允许在Host侧或Ascend 310 RC上被调用。
函数格式
static HIAI_StatusT Graph::DestroyGraph(uint32_t graphID)
参数说明
参数 |
说明 |
取值范围 |
---|---|---|
graphID |
需要销毁的graph的id |
配置文件里配置的Graph编号 |
返回值
返回的部分错误码请参见“错误码示例”中的“错误码”列。
错误码示例
序号 |
错误码 |
错误码描述 |
---|---|---|
1 |
HIAI_OK |
running ok |
2 |
HIAI_GRAPH_DESTROY_TIMEOUT |
destroy graph timeout |
3 |
HIAI_GRAPH_ENGINE_DESTROY_FAILED |
destroy graph failed |