EsGraphBuilder Constructor

Applicable Products

All processors

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

Restrictions

None

Example

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