Converting the Data Type of a Dump File
Description
Converts the data type of a dump file in .bin format.
The dump file in .bin format can be obtained from Parsing Dump Files.
Applicability
Product |
Supported |
|---|---|
Atlas 350 Accelerator Card |
√ |
√ |
|
√ |
|
√ |
|
√ |
|
√ |
Command
python3 msaicerr.py -d path1 -out path2 -dtype int8
Parameters
- -d or --data: a mandatory parameter specifying the path of the dump file in *.bin format, including the file name.
- -out or --output_path: an optional parameter specifying the path for storing the .npy result file. If this parameter is not specified, the result file and the dump file are stored in the same path by default.
- -dtype or --dest_dtype: a mandatory parameter specifying the data type of the dump file to be converted. If the specified data type is different from that in the source dump file, a warning message is displayed when the parsing command is executed, and the data is parsed based on the specified data type.
Value range: float32, float16, float64, int8, int16, int32, int64, uint8, uint16, uint32, uint64, bool, bfloat16
Usage Example and Output Description
python3 msaicerr.py -d /demo/extra-info/data-dump/0/exception_info.2.1.20250611171538370.input.0.bin -dtype int8
Output example:
[INFO] The dump file directory will be used to as the output directory of the parsed results. [INFO] Success convert bin to npy: /demo/extra-info/data-dump/0/exception_info.2.1.20250611171538370.input.0.bin -> /demo/extra-info/data-dump/0/exception_info.2.1.20250611171538370.input.0.int8.npy
Obtain the conversion result file as prompted.
After the msaicerr.py tool is executed, the debug_info.txt file is generated in the same directory as the msaicerr.py tool to record the log information generated during the tool execution.
Parent topic: msaicerr Tool Usage Guide