GetSubgraph

Applicable Products

All processors

Header File/Library File

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

Function Usage

Obtains an operator subgraph based on the subgraph name.

Prototype

APIs taking string arguments will be deprecated in future releases. Use APIs taking non-string arguments instead.

1
2
Graph GetSubgraph(const std::string &name) const
Graph GetSubgraph(const char_t *name) const

Parameters

Parameter

Input/Output

Description

name

Input

Subgraph name.

Returns

Graph object.

Exception Handling

None

Restrictions

None