IsStatic

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/ge_graph_compile_summary.h>
  • Library file: libge_compiler.so

Function Usage

Returns whether the graph is statically compiled. The subsequent API for obtaining the summary information can be used only when the graph is statically compiled.

The GetFixedFeatureMemorySize and GetAllFeatureMemoryTypeSize APIs are excluded.

Prototype

1
bool IsStatic() const

Parameters

None

Returns

If the graph is statically compiled, true is returned. In other cases, false is returned.

Constraints

None