2023-05-05 16:32:00,778 file: tool_utils.py func: tool_utils line No: 73 log will be stored in /open_explorer/ddk/samples/ai_toolchain/horizon_model_convert_sample/04_detection/14_bevformer/mapper/hb_mapper_checker.log 2023-05-05 16:32:00,778 file: hb_mapper.py func: hb_mapper line No: 71 Start hb_mapper.... 2023-05-05 16:32:00,778 file: hb_mapper.py func: hb_mapper line No: 72 hbdk version 3.43.6 2023-05-05 16:32:00,778 file: hb_mapper.py func: hb_mapper line No: 73 horizon_nn version 0.16.3 2023-05-05 16:32:00,778 file: hb_mapper.py func: hb_mapper line No: 74 hb_mapper version 1.15.4 2023-05-05 16:32:01,003 file: helper.py func: helper line No: 132 Model input names: ['0', '2', '3'] 2023-05-05 16:32:01,014 file: hb_mapper_checker.py func: hb_mapper_checker line No: 103 Model type: onnx 2023-05-05 16:32:01,014 file: hb_mapper_checker.py func: hb_mapper_checker line No: 104 march: bayes 2023-05-05 16:32:01,014 file: hb_mapper_checker.py func: hb_mapper_checker line No: 109 input names [] 2023-05-05 16:32:01,014 file: hb_mapper_checker.py func: hb_mapper_checker line No: 110 input shapes {} 2023-05-05 16:32:01,015 file: hb_mapper_checker.py func: hb_mapper_checker line No: 116 Begin model checking.... 2023-05-05 16:32:01,025 file: build.py func: build line No: 39 [Fri May 5 16:32:01 2023] Start to Horizon NN Model Convert. 2023-05-05 16:32:01,025 file: dict_parser.py func: dict_parser line No: 32 The input parameter is not specified, convert with default parameters. 2023-05-05 16:32:01,026 file: dict_parser.py func: dict_parser line No: 521 Parsing the hbdk parameter:{'hbdk_pass_through_params': '--O0'} 2023-05-05 16:32:01,026 file: build.py func: build line No: 153 HorizonNN version: 0.16.3 2023-05-05 16:32:01,027 file: build.py func: build line No: 157 HBDK version: 3.43.6 2023-05-05 16:32:01,027 file: build.py func: build line No: 39 [Fri May 5 16:32:01 2023] Start to parse the onnx model. 2023-05-05 16:32:01,130 file: onnx_parser.py func: onnx_parser line No: 235 Input ONNX model infomation: ONNX IR version: 6 Opset version: [11] Producer: pytorch1.9 Domain: none Input name: 0, [1, 1, 6, 3, 480, 800] Input name: 2, [1, 6, 4, 4] Input name: 3, [1, 2] Output name: 18592, [0, 0] Output name: 18593, [0] Output name: 18594, [0] 2023-05-05 16:32:01,917 file: build.py func: build line No: 42 [Fri May 5 16:32:01 2023] End to parse the onnx model. 2023-05-05 16:32:01,917 file: build.py func: build line No: 228 Model input names parsed from model: ['0', '2', '3'] 2023-05-05 16:32:02,095 file: build.py func: build line No: 503 Saving the original float model: ./.hb_check/original_float_model.onnx. 2023-05-05 16:32:02,101 file: build.py func: build line No: 39 [Fri May 5 16:32:02 2023] Start to optimize the model. 2023-05-05 16:32:02,726 file: tool_utils.py func: tool_utils line No: 131 exception in command: checker 2023-05-05 16:32:02,728 file: tool_utils.py func: tool_utils line No: 132 Traceback (most recent call last): File "/usr/local/lib/python3.8/dist-packages/horizon_tc_ui/hb_mapper_checker.py", line 138, in run hybrid_model = check_onnx(onnx_file=self.model, File "/usr/local/lib/python3.8/dist-packages/horizon_nn/build.py", line 893, in check_onnx return builder.build_model(original_model, save_model) File "/usr/local/lib/python3.8/dist-packages/horizon_nn/build.py", line 522, in build_model optimized_model = self.optimize_model(original_model) File "/usr/local/lib/python3.8/dist-packages/horizon_nn/build.py", line 351, in optimize_model optimized_model = quantizer.optimize(original_model, self.march) File "/usr/local/lib/python3.8/dist-packages/horizon_nn/horizon_onnx/quantizer.py", line 189, in optimize optimized_model_str = C.optimize(model_str, march) RuntimeError: There is an error in pass:constant_folding. Error message:Type Error: Type parameter (T) bound to different types (tensor(int64) and tensor(int32) in node (Concat_148_constanst_floding). During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.8/dist-packages/horizon_tc_ui/utils/tool_utils.py", line 129, in __decorator func(*args, **kargs) File "/usr/local/lib/python3.8/dist-packages/horizon_tc_ui/hb_mapper.py", line 83, in checker CheckerRunner(proto, model, model_type, march, File "/usr/local/lib/python3.8/dist-packages/horizon_tc_ui/hb_mapper_checker.py", line 147, in run raise ValueError( ValueError: *** ERROR-OCCUR-DURING {horizon_nn.check_onnx} ***, error message: There is an error in pass:constant_folding. Error message:Type Error: Type parameter (T) bound to different types (tensor(int64) and tensor(int32) in node (Concat_148_constanst_floding). 2023-05-05 16:32:02,728 file: tool_utils.py func: tool_utils line No: 133 *** ERROR-OCCUR-DURING {horizon_nn.check_onnx} ***, error message: There is an error in pass:constant_folding. Error message:Type Error: Type parameter (T) bound to different types (tensor(int64) and tensor(int32) in node (Concat_148_constanst_floding). 2023-05-05 16:32:02,735 file: build.py func: build line No: 42 [Fri May 5 16:32:02 2023] End to optimize the model. 2023-05-05 16:32:02,735 file: build.py func: build line No: 42 [Fri May 5 16:32:02 2023] End to Horizon NN Model Convert.