Model Compilation and Performance Analysis Tool
HAT is capable of compiling fixed-point models to make the compiled Pytorch models suitable for on-board running. You can choose to compile the model as described in the next section.
Usage
This method uses the script tools/compile_perf_hbir.py with the following command.
For a detailed introduction to the configuration file, please refer to the [Configuration] section [config configuration] (../config/keywords).
If you want to deploy the model provided by the reference algorithm package on nash-p, nash-b, or nash-h, you need to pass the corresponding march parameter.
Parameters Introduction
Usage Example
This command will get the compilation-related configurations from the hbir_compiler field in the config file, as illustrated by the following example:
After the compilation is completed, the generated model.hbm file will be saved to the pre-set storage path for the compiled model files.
