GetCompiledGraphSummary

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

x

Atlas inference products

Atlas training products

Header File/Library File

  • Header file: #include <ge/ge_api.h>
  • Library file: libge_runner.so

Function Usage

Queries the summary information about the graph compilation result. The summary information includes the feature memory size, const memory size, number of streams and events, and whether the memory can be updated.

  • Before calling this API, you must call CompileGraph to compile the graph.
  • You can apply for memory resources, and set the base addresses of the feature memory and Const memory by calling the following APIs:
    • SetGraphConstMemoryBase: sets the base address of Const memory. The memory size is obtained from GetCompiledGraphSummary > GetConstMemorySize.
    • UpdateGraphFeatureMemoryBase: updates the base address of feature memory. The memory size is obtained from GetCompiledGraphSummary > GetFeatureMemorySize.
    • SetGraphFixedFeatureMemoryBase: sets the base address of fixed feature memory. The memory size is obtained from GetCompiledGraphSummary > GetFixedFeatureMemorySize.
    • SetGraphFixedFeatureMemoryBaseWithType: sets the base addresses of fixed feature memory with a different memory type of a graph. The memory size is obtained from GetCompiledGraphSummary > GetAllFeatureMemoryTypeSize.
    • UpdateGraphRefreshableFeatureMemoryBase: updates the base addresses of feature memory that can be refreshed except the fixed memory. The memory size is obtained from GetCompiledGraphSummary > GetRefreshableFeatureMemorySize.

Prototype

1
CompiledGraphSummaryPtr GetCompiledGraphSummary(uint32_t graph_id)

Parameters

Parameter

Input/Output

Description

graph_id

Input

Subgraph ID.

Returns

Parameter

Type

Description

-

CompiledGraphSummaryPtr

shared_ptr of CompiledGraphSummary.

Restrictions

None