Updated on 2022-03-13 GMT+08:00

HIAI_DestroyGraph

Destroys a graph. It can be called only on the host or Ascend 310 RC. This API is defined in c_graph.h.

Syntax

HIAI_StatusT HIAI_DestroyGraph (uint32_t graphID)

Parameter Description

Parameter

Description

Value Range

graphID

Specified graph ID

-

Return Value

For details about the returned error codes, see "Error Codes."

Error Codes

No.

Error Code

Description

1

HIAI_OK

The running is OK.

2

HIAI_GRAPH_DESTROY_TIMEOUT

Destroying a graph timed out.

3

HIAI_GRAPH_ENGINE_DESTROY_FAILED

Destroying an engine failed.