SetTargets

Applicable Products

All processors

Header File/Library File

  • Header file: #include <graph/graph.h>
  • Library file: libgraph.so

Function Usage

Sets the list of end nodes for a graph.

Operators in this list need to be executed, but their outputs are not returned to the user.

Prototype

1
Graph &SetTargets(const std::vector<Operator> &targets)

Parameters

Parameter

Input/Output

Description

targets

Input

A list of end operators.

Returns

Parameter

Type

Description

-

Graph&

Caller itself.

Restrictions

This API must be called in the final step of the graph construction process. Deleting Outputs or Targets nodes after this call may cause errors.