4.1.2.6. The hb_pack Tool¶
The hb_pack tool is used to pack multiple *.bin models into one model file.
4.1.2.6.1. How to Use¶
hb_pack [OPTIONS] BIN_FILE1 BIN_FILE2 BIN_FILE3 -o comb.bin
4.1.2.6.2. Parameters¶
- Parameters:
- --version
Displays version information and exits.
- -o, --output_name
Output name of the pack model.
- --help
Displays help information and exits.
4.1.2.6.3. Output Contents¶
The packaged model will be generated in the current folder under the name specified by output_name. You can use hb_model_info and hb_perf to get the compilation and performance information of all sub-models in this packaged model.
Attention
You cannot re-pack the model that has already been packaged using hb_pack or the following message will occur:
ERROR exception in command: pack
ERROR model: xxx.bin is a packed model, it can not be packed again!