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.
Config File as Input
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:
When the compilation is complete, the following files are generated.
tmp_compile/model.hbm: Compiled model file.
