--debug_dir

Description

Sets the directory for storing the debug files generated by operator build during model conversion.

The temporary files include but are not limited to the operator binary file (.o), operator description file (.json), and .cce file, and are subject to the --op_debug_level argument.

See Also

If you want to specify the path for storing the process file of operator build, use --debug_dir together with --op_debug_level (non-zero value).

Argument

Argument: Directory for saving the debug files generated by operator build.

Format: The directory can contain letters, digits, underscores (_), hyphens (-), periods (.), and Chinese characters.

Restrictions: Before running the atc command, create the directory specified by this option.

Default: The temporary files generated in the operator build process are saved in the ./kernel_meta folder in the directory where the atc command is executed.

Suggestions and Benefits

None

Example

To set the directory to debug_info, for example, run the following command:

--debug_dir=$HOME/module/out/debug_info --op_debug_level=1

Applicability

Atlas 200/300/500 Inference Product

Atlas Training Series Product

Restrictions

In addition to --debug_dir, the environment variable ASCEND_WORK_PATH can be used to set the path for storing the debug file generated by operator build. The priorities of the configuration methods are as follows: --debug_dir > ASCEND_WORK_PATH > default storage path.