HIAI_DestroyGraph
销毁指定的Graph,只允许在Host侧或Ascend 310 RC上被调用。该接口在c_graph.h中定义。
函数格式
HIAI_StatusT HIAI_DestroyGraph (uint32_t graphID)
参数说明
参数 |
说明 |
取值范围 |
---|---|---|
graphID |
指定的Graph ID。 |
- |
返回值
返回的部分错误码请参见“错误码示例”中的“错误码”列。
错误码示例
序号 |
错误码 |
错误码描述 |
---|---|---|
1 |
HIAI_OK |
running ok |
2 |
HIAI_GRAPH_DESTROY_TIMEOUT |
destroy timeout |
3 |
HIAI_GRAPH_ENGINE_DESTROY_FAILED |
engine destroy failed |