GetCompiledGraphSummary
Applicability
Product |
Supported or Not |
|---|---|
√ |
|
√ |
|
x |
|
√ |
|
√ |
Header File/Library File
- Header file: #include <ge/ge_api_v2.h>
- Library file: libge_runner_v2.so
Function Usage
Queries the summary information about the graph compilation result. The summary information includes the feature memory size, const memory size, numbers 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 allocate 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.
- SetGraphFixedFeatureMemoryBaseWithType: sets the fixed feature memory base address for different memory types 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 the summary information about the graph compilation result of CompiledGraphSummary. |
Constraints
None
Parent topic: GESession