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

Graph::DestroyGraph

Destroys the entire graph. This API is defined in graph.h.

It can be called only on the host or Ascend 310 RC.

Syntax

static HIAI_StatusT Graph::DestroyGraph(uint32_t graphID)

Parameter Description

Parameter

Description

Value Range

graphID

ID of the graph to be destroyed

Graph ID configured in the configuration file

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 a graph failed.