6.2.9. The hb_custom_op Tool¶
The hb_custom_op tool is used for generating the template file of user customized ops.
The Python template file contains the calculation definition function of custom ops.
The file will be used in model conversion. If the function is not defined, then the calibration stage in the conversion cannot be executed.
6.2.9.1. How to Use¶
hb_custom_op COMMAND
6.2.9.2. Parameters¶
Parameter:
hb_custom_op create
This command creates corresponding Python template file for custom ops.
6.2.9.3. Output Contents¶
The hb_custom_op create command can generate a Python file that contains the custom op template.