Model Compilation
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.
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.
