EsGraphBuilder Constructor

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 <ge/es_graph_builder.h>
  • Library files: libeager_style_graph_builder_base.so and libeager_style_graph_builder_base_static.a

Function Usage

Creates a graph builder with a specified name. It is a constructor.

Prototype

1
explicit EsGraphBuilder(const char *name) : graph_builder_(EsCreateGraphBuilder(name), EsDestroyGraphBuilder) {}

Parameters

Parameter

Input/Output

Description

name

Input

Name of the graph to be built. If the value is nullptr, the default name graph is used.

Returns

None

Constraints

None

Examples

1
2
//1. Create a graph builder (EsGraphBuilder).
EsGraphBuilder builder("graph_name");