DUMP_GRAPH_LEVEL

Description

DUMP_GRAPH_LEVEL sets the graph to dump.

This environment variable can be configured in either of the following ways. Both of them are used to control the number of flushed graphs. You can use them as required. Note that the two configuration methods cannot be used together.

  • Set it to a value. Possible values are as follows:
    • 1: dumps all graphs.
    • 2 (default): dumps all graphs except subgraphs.
    • 3: dumps the last generated graph, that is, the graph optimized and compiled by the GE.
    • 4: dumps the earliest generated graph, that is, the entire graph that is first moved down to the device after the GE parsing and mapping operator. This graph has not been compiled or optimized by the GE.
  • Set it to a character string separated by vertical bars (|):

    For example, if this environment variable is set to aa|bb, graphs whose names contain aa and bb are dumped. aa and bb must be set to valid character strings during graph build. Valid strings can be obtained from a full dump of the graphs.

DUMP_GRAPH_LEVEL takes effect only when DUMP_GE_GRAPH is enabled. The default value is 2.

Example

  • Set this environment variable to a value:
    export DUMP_GRAPH_LEVEL=1
  • Set this environment variable to a character string separated by vertical bars (|):
    export DUMP_GRAPH_LEVEL="PreRunBegin|after_infershape"

Restrictions

  • If this environment variable is set to an invalid value, undefined behavior may occur.
  • This environment variable must be used together with DUMP_GE_GRAPH. That is, when DUMP_GE_GRAPH is enabled, DUMP_GRAPH_LEVEL can be used to control the generated dump graphs.

Applicability

Atlas 200/300/500 Inference Product

Atlas Training Series Product