SetSubgraphBuilder

Applicability

Product

Supported or Not

Atlas A3 training products/Atlas A3 inference products

Atlas A2 training products/Atlas A2 inference products

Atlas 200I/500 A2 inference products

Atlas inference products

Atlas training products

Header File/Library File

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

Function Usage

Sets the function object for building a specified subgraph.

Prototype

1
void SetSubgraphBuilder(const char_t *ir_name, uint32_t index, const SubgraphBuilder &builder)

Parameters

Parameter

Input/Output

Description

ir_name

Input

Subgraph name.

index

Input

Index of a subgraph in the dynamic subgraph scenario (the number of subgraphs is not fixed).

builder

Input

Function object for building a subgraph.

Returns

None

Exception Handling

None

Constraints

None