专栏算法工具链模型检查失败,无法定位算子

模型检查失败,无法定位算子

已解决
西游2022-08-19
139
3

用户您好,请详细描述您所遇到的问题。

硬件平台为地平线J5,onnx模型check时前面都正常通过了,最后报错unsupported broadcast mode,也没有办法定位是哪个算子?

2022-08-19 10:16:14,473 file: hb_mapper.py func: hb_mapper line No: 73 Start hb_mapper....

2022-08-19 10:16:14,473 file: hb_mapper.py func: hb_mapper line No: 74 log will be stored in /open_explorer/my_workspace/hb_mapper_checker.log

2022-08-19 10:16:14,473 file: hb_mapper.py func: hb_mapper line No: 75 hbdk version 3.37.2

2022-08-19 10:16:14,473 file: hb_mapper.py func: hb_mapper line No: 76 horizon_nn version 0.14.1

2022-08-19 10:16:14,474 file: hb_mapper.py func: hb_mapper line No: 77 hb_mapper version 1.9.10

2022-08-19 10:16:14,642 file: helper.py func: helper line No: 133 Model input names: ['arg1']

2022-08-19 10:16:14,650 file: hb_mapper_checker.py func: hb_mapper_checker line No: 104 Model type: onnx

2022-08-19 10:16:14,651 file: hb_mapper_checker.py func: hb_mapper_checker line No: 105 march: bayes

2022-08-19 10:16:14,651 file: hb_mapper_checker.py func: hb_mapper_checker line No: 110 input names ['arg1']

2022-08-19 10:16:14,651 file: hb_mapper_checker.py func: hb_mapper_checker line No: 111 input shapes {'arg1': [1, 3, 512, 512]}

2022-08-19 10:16:14,750 file: helper.py func: helper line No: 133 Model input names: ['arg1']

2022-08-19 10:16:14,752 file: hb_mapper_checker.py func: hb_mapper_checker line No: 117 Begin model checking....

2022-08-19 10:16:14,771 file: build.py func: build line No: 37 [Fri Aug 19 10:16:14 2022] Start to Horizon NN Model Convert.

2022-08-19 10:16:14,771 file: dict_parser.py func: dict_parser line No: 32 Parsing the input parameter:{'arg1': {'input_shape': [1, 3, 512, 512], 'input_batch': 1}}

2022-08-19 10:16:14,771 file: dict_parser.py func: dict_parser line No: 523 Parsing the hbdk parameter:{'hbdk_pass_through_params': '--O0'}

2022-08-19 10:16:14,772 file: build.py func: build line No: 146 HorizonNN version: 0.14.1

2022-08-19 10:16:14,772 file: build.py func: build line No: 150 HBDK version: 3.37.2

2022-08-19 10:16:14,772 file: build.py func: build line No: 37 [Fri Aug 19 10:16:14 2022] Start to parse the onnx model.

2022-08-19 10:16:14,869 file: onnx_parser.py func: onnx_parser line No: 193 Input ONNX model infomation:

ONNX IR version: 7

Opset version: [11]

Producer: pytorch1.10

Domain: none

Input name: arg1, [1, 3, 512, 512]

Output name: points, [1, 30, 3]

Output name: ...criptors, [1, 128, 30]

2022-08-19 10:16:15,492 file: build.py func: build line No: 40 [Fri Aug 19 10:16:15 2022] End to parse the onnx model.

2022-08-19 10:16:15,506 file: build.py func: build line No: 282 Model input names: ['arg1']

2022-08-19 10:16:15,594 file: build.py func: build line No: 546 Saving the original float model: ./.hb_check/original_float_model.onnx.

2022-08-19 10:16:15,595 file: build.py func: build line No: 37 [Fri Aug 19 10:16:15 2022] Start to optimize the model.

2022-08-19 10:16:16,585 file: build.py func: build line No: 40 [Fri Aug 19 10:16:16 2022] End to optimize the model.

2022-08-19 10:16:16,698 file: build.py func: build line No: 562 Saving the optimized model: ./.hb_check/optimized_float_model.onnx.

2022-08-19 10:16:16,698 file: build.py func: build line No: 37 [Fri Aug 19 10:16:16 2022] Start to calibrate the model.

2022-08-19 10:16:16,706 file: calibration_data_set.py func: calibration_data_set line No: 67 There are 1 samples in the calibration data set.

2022-08-19 10:16:17,358 file: max_calibrater.py func: max_calibrater line No: 68 Run calibration model with max method.

2022-08-19 10:16:18,568 file: calibrater.py func: calibrater line No: 51 find illegal threshold in 2032, it will be set default.

2022-08-19 10:16:18,569 file: calibrater.py func: calibrater line No: 51 find illegal threshold in 2174, it will be set default.

2022-08-19 10:16:18,569 file: calibrater.py func: calibrater line No: 51 find illegal threshold in 2039, it will be set default.

2022-08-19 10:16:18,569 file: calibrater.py func: calibrater line No: 51 find illegal threshold in 2176, it will be set default.

2022-08-19 10:16:18,569 file: calibrater.py func: calibrater line No: 51 find illegal threshold in 2046, it will be set default.

2022-08-19 10:16:18,569 file: calibrater.py func: calibrater line No: 51 find illegal threshold in 2178, it will be set default.

2022-08-19 10:16:18,693 file: build.py func: build line No: 40 [Fri Aug 19 10:16:18 2022] End to calibrate the model.

2022-08-19 10:16:18,694 file: build.py func: build line No: 37 [Fri Aug 19 10:16:18 2022] Start to quantize the model.

2022-08-19 10:16:30,595 file: build.py func: build line No: 40 [Fri Aug 19 10:16:30 2022] End to quantize the model.

2022-08-19 10:16:31,582 file: build.py func: build line No: 576 Saving the quantized model: ./.hb_check/quantized_model.onnx.

2022-08-19 10:16:34,448 file: build.py func: build line No: 37 [Fri Aug 19 10:16:34 2022] Start to compile the model with march bayes.

2022-08-19 10:16:35,755 file: hybrid_build.py func: hybrid_build line No: 149 Compile submodel: torch-jit-export_subgraph_0

2022-08-19 10:16:37,734 file: hbdk_cc.py func: hbdk_cc line No: 95 hbdk-cc parameters:['--O0', '--input-layout', 'NCHW', '--output-layout', 'NCHW']

2022-08-19 10:16:37,735 file: hbdk_cc.py func: hbdk_cc line No: 96 hbdk-cc command used:hbdk-cc -f hbir -m /tmp/tmp70cgpxtb/torch-jit-export_subgraph_0.bin -o /tmp/tmp70cgpxtb/torch-jit-export_subgraph_0.hbm --march bayes --progressbar --O0 --input-layout NCHW --output-layout NCHW

2022-08-19 10:16:37,852 file: tool_utils.py func: tool_utils line No: 293 INFO: "-j" or "--jobs" is not specified, launch 6 threads for optimization

2022-08-19 10:16:39,338 file: tool_utils.py func: tool_utils line No: 293 consumed time 1.5125

2022-08-19 10:16:39,374 file: hybrid_build.py func: hybrid_build line No: 149 Compile submodel: torch-jit-export_subgraph_1

2022-08-19 10:16:39,478 file: hbdk_cc.py func: hbdk_cc line No: 95 hbdk-cc parameters:['--O0', '--input-layout', 'NHWC', '--output-layout', 'NCHW']

2022-08-19 10:16:39,478 file: hbdk_cc.py func: hbdk_cc line No: 96 hbdk-cc command used:hbdk-cc -f hbir -m /tmp/tmp70cgpxtb/torch-jit-export_subgraph_1.bin -o /tmp/tmp70cgpxtb/torch-jit-export_subgraph_1.hbm --march bayes --progressbar --O0 --input-layout NHWC --output-layout NCHW

2022-08-19 10:16:39,534 file: tool_utils.py func: tool_utils line No: 293 INFO: "-j" or "--jobs" is not specified, launch 6 threads for optimization

2022-08-19 10:16:39,536 file: tool_utils.py func: tool_utils line No: 293 INFO: input[0] ("2169_Mul_801_quantized_input_input_0") type is set as [ddr].

2022-08-19 10:16:39,537 file: tool_utils.py func: tool_utils line No: 293 INFO: input[1] ("2025_Mul_801_quantized_input_input_0") type is set as [ddr].

2022-08-19 10:16:39,537 file: tool_utils.py func: tool_utils line No: 293 INFO: input[2] ("2170_Mul_802_quantized_input_input_0") type is set as [ddr].

2022-08-19 10:16:39,538 file: tool_utils.py func: tool_utils line No: 293 INFO: input[3] ("2032_Mul_802_quantized_input_input_0") type is set as [ddr].

2022-08-19 10:16:39,538 file: tool_utils.py func: tool_utils line No: 293 INFO: input[4] ("2171_Mul_804_quantized_input_input_0") type is set as [ddr].

2022-08-19 10:16:39,538 file: tool_utils.py func: tool_utils line No: 293 INFO: input[5] ("2039_Mul_804_quantized_input_input_0") type is set as [ddr].

2022-08-19 10:16:39,539 file: tool_utils.py func: tool_utils line No: 293 INFO: input[6] ("2172_Mul_806_quantized_input_input_0") type is set as [ddr].

2022-08-19 10:16:39,539 file: tool_utils.py func: tool_utils line No: 293 INFO: input[7] ("2046_Mul_806_quantized_input_input_0") type is set as [ddr].

2022-08-19 10:16:39,580 file: tool_utils.py func: tool_utils line No: 293 consumed time 0.0476027

2022-08-19 10:16:40,398 file: build.py func: build line No: 40 [Fri Aug 19 10:16:40 2022] End to compile the model with march bayes.

2022-08-19 10:16:40,412 file: node_info.py func: node_info line No: 54 The converted model node information:

======================================================================================

Node ON Subgraph Type

---------------------------------------------------------------------------------------

Conv_0 BPU id(0) HzSQuantizedConv

Conv_2 BPU id(0) HzSQuantizedConv

Conv_4 BPU id(0) HzSQuantizedConv

MaxPool_6 BPU id(0) HzQuantizedMaxPool

Concat_7 BPU id(0) Concat

Conv_8 BPU id(0) HzSQuantizedConv

Conv_10 BPU id(0) HzSQuantizedConv

Conv_12 BPU id(0) HzSQuantizedConv

Conv_14 BPU id(0) HzSQuantizedConv

Conv_16 BPU id(0) HzSQuantizedConv

Conv_18 BPU id(0) HzSQuantizedConv

Concat_20 BPU id(0) Concat

Conv_21 BPU id(0) HzSQuantizedConv

Conv_23 BPU id(0) HzSQuantizedConv

Conv_25 BPU id(0) HzSQuantizedConv

Conv_27 BPU id(0) HzSQuantizedConv

Conv_29 BPU id(0) HzSQuantizedConv

Concat_31 BPU id(0) Concat

Conv_32 BPU id(0) HzSQuantizedConv

Conv_34 BPU id(0) HzSQuantizedConv

Conv_36 BPU id(0) HzSQuantizedConv

Conv_38 BPU id(0) HzSQuantizedConv

Conv_40 BPU id(0) HzSQuantizedConv

Concat_42 BPU id(0) Concat

Conv_43 BPU id(0) HzSQuantizedConv

AveragePool_47 BPU id(0) HzSQuantizedConv

Conv_48 BPU id(0) HzSQuantizedConv

Conv_50 BPU id(0) HzSQuantizedConv

Conv_52 BPU id(0) HzSQuantizedConv

Conv_54 BPU id(0) HzSQuantizedConv

Conv_56 BPU id(0) HzSQuantizedConv

Concat_58 BPU id(0) Concat

Conv_59 BPU id(0) HzSQuantizedConv

Conv_61 BPU id(0) HzSQuantizedConv

Conv_63 BPU id(0) HzSQuantizedConv

Conv_65 BPU id(0) HzSQuantizedConv

Conv_67 BPU id(0) HzSQuantizedConv

Concat_69 BPU id(0) Concat

Conv_70 BPU id(0) HzSQuantizedConv

Conv_72 BPU id(0) HzSQuantizedConv

Conv_74 BPU id(0) HzSQuantizedConv

Conv_76 BPU id(0) HzSQuantizedConv

Conv_78 BPU id(0) HzSQuantizedConv

Concat_80 BPU id(0) Concat

Conv_81 BPU id(0) HzSQuantizedConv

Conv_83 BPU id(0) HzSQuantizedConv

Conv_85 BPU id(0) HzSQuantizedConv

Conv_87 BPU id(0) HzSQuantizedConv

Conv_89 BPU id(0) HzSQuantizedConv

UNIT_CONV_FOR_1261_0.029104024171829_TO_FUSE_SCALE BPU id(0) HzSQuantizedConv

Concat_91 BPU id(0) Concat

Conv_92 BPU id(0) HzSQuantizedConv

AveragePool_96 BPU id(0) HzSQuantizedConv

Conv_97 BPU id(0) HzSQuantizedConv

Conv_99 BPU id(0) HzSQuantizedConv

Conv_101 BPU id(0) HzSQuantizedConv

Conv_103 BPU id(0) HzSQuantizedConv

Conv_105 BPU id(0) HzSQuantizedConv

Concat_107 BPU id(0) Concat

Conv_108 BPU id(0) HzSQuantizedConv

Conv_110 BPU id(0) HzSQuantizedConv

Conv_112 BPU id(0) HzSQuantizedConv

Conv_114 BPU id(0) HzSQuantizedConv

Conv_116 BPU id(0) HzSQuantizedConv

Concat_118 BPU id(0) Concat

Conv_119 BPU id(0) HzSQuantizedConv

Conv_121 BPU id(0) HzSQuantizedConv

Conv_123 BPU id(0) HzSQuantizedConv

Conv_125 BPU id(0) HzSQuantizedConv

Conv_127 BPU id(0) HzSQuantizedConv

Concat_129 BPU id(0) Concat

Conv_130 BPU id(0) HzSQuantizedConv

Conv_132 BPU id(0) HzSQuantizedConv

Conv_134 BPU id(0) HzSQuantizedConv

Conv_136 BPU id(0) HzSQuantizedConv

Conv_138 BPU id(0) HzSQuantizedConv

Concat_140 BPU id(0) Concat

Conv_141 BPU id(0) HzSQuantizedConv

Conv_143 BPU id(0) HzSQuantizedConv

Conv_145 BPU id(0) HzSQuantizedConv

Conv_147 BPU id(0) HzSQuantizedConv

Conv_149 BPU id(0) HzSQuantizedConv

Concat_151 BPU id(0) Concat

Conv_152 BPU id(0) HzSQuantizedConv

Conv_154 BPU id(0) HzSQuantizedConv

Conv_156 BPU id(0) HzSQuantizedConv

Conv_158 BPU id(0) HzSQuantizedConv

Conv_160 BPU id(0) HzSQuantizedConv

Concat_162 BPU id(0) Concat

Conv_163 BPU id(0) HzSQuantizedConv

Conv_165 BPU id(0) HzSQuantizedConv

Conv_167 BPU id(0) HzSQuantizedConv

Conv_169 BPU id(0) HzSQuantizedConv

Conv_171 BPU id(0) HzSQuantizedConv

UNIT_CONV_FOR_1379_0.014508938416839_TO_FUSE_SCALE BPU id(0) HzSQuantizedConv

Concat_173 BPU id(0) Concat

Conv_174 BPU id(0) HzSQuantizedConv

Conv_176 BPU id(0) HzSQuantizedConv

Conv_178 BPU id(0) HzSQuantizedConv

Conv_180 BPU id(0) HzSQuantizedConv

Conv_182 BPU id(0) HzSQuantizedConv

UNIT_CONV_FOR_1395_0.026243928819895_TO_FUSE_SCALE BPU id(0) HzSQuantizedConv

Concat_184 BPU id(0) Concat

Conv_185 BPU id(0) HzSQuantizedConv

AveragePool_189 BPU id(0) HzSQuantizedConv

Conv_190 BPU id(0) HzSQuantizedConv

Conv_192 BPU id(0) HzSQuantizedConv

Conv_194 BPU id(0) HzSQuantizedConv

Conv_196 BPU id(0) HzSQuantizedConv

Conv_198 BPU id(0) HzSQuantizedConv

UNIT_CONV_FOR_1417_0.014762607403100_TO_FUSE_SCALE BPU id(0) HzSQuantizedConv

Concat_200 BPU id(0) Concat

Conv_201 BPU id(0) HzSQuantizedConv

Conv_203 BPU id(0) HzSQuantizedConv

Conv_205 BPU id(0) HzSQuantizedConv

Conv_207 BPU id(0) HzSQuantizedConv

Conv_209 BPU id(0) HzSQuantizedConv

UNIT_CONV_FOR_1433_0.017855899408460_TO_FUSE_SCALE BPU id(0) HzSQuantizedConv

Concat_211 BPU id(0) Concat

Conv_212 BPU id(0) HzSQuantizedConv

Conv_214 BPU id(0) HzSQuantizedConv

Conv_216 BPU id(0) HzSQuantizedConv

Conv_218 BPU id(0) HzSQuantizedConv

Conv_220 BPU id(0) HzSQuantizedConv

Concat_222 BPU id(0) Concat

Conv_223 BPU id(0) HzSQuantizedConv

Conv_225 BPU id(0) HzSQuantizedConv

Conv_227 BPU id(0) HzSQuantizedConv

Conv_229 BPU id(0) HzSQuantizedConv

Conv_231 BPU id(0) HzSQuantizedConv

Concat_233 BPU id(0) Concat

Conv_234 BPU id(0) HzSQuantizedConv

Conv_236 BPU id(0) HzSQuantizedConv

Conv_238 BPU id(0) HzSQuantizedConv

Conv_240 BPU id(0) HzSQuantizedConv

Conv_242 BPU id(0) HzSQuantizedConv

Concat_244 BPU id(0) Concat

Conv_245 BPU id(0) HzSQuantizedConv

Conv_247 BPU id(0) HzSQuantizedConv

Conv_249 BPU id(0) HzSQuantizedConv

Conv_251 BPU id(0) HzSQuantizedConv

Conv_253 BPU id(0) HzSQuantizedConv

Concat_255 BPU id(0) Concat

Conv_256 BPU id(0) HzSQuantizedConv

Conv_258 BPU id(0) HzSQuantizedConv

Conv_260 BPU id(0) HzSQuantizedConv

Conv_262 BPU id(0) HzSQuantizedConv

Conv_264 BPU id(0) HzSQuantizedConv

Concat_266 BPU id(0) Concat

Conv_267 BPU id(0) HzSQuantizedConv

Conv_269 BPU id(0) HzSQuantizedConv

Conv_271 BPU id(0) HzSQuantizedConv

Conv_273 BPU id(0) HzSQuantizedConv

Conv_275 BPU id(0) HzSQuantizedConv

Concat_277 BPU id(0) Concat

Conv_278 BPU id(0) HzSQuantizedConv

Conv_280 BPU id(0) HzSQuantizedConv

Conv_282 BPU id(0) HzSQuantizedConv

Conv_284 BPU id(0) HzSQuantizedConv

Conv_286 BPU id(0) HzSQuantizedConv

Concat_288 BPU id(0) Concat

Conv_289 BPU id(0) HzSQuantizedConv

Conv_291 BPU id(0) HzSQuantizedConv

Conv_293 BPU id(0) HzSQuantizedConv

Conv_295 BPU id(0) HzSQuantizedConv

Conv_297 BPU id(0) HzSQuantizedConv

Concat_299 BPU id(0) Concat

Conv_300 BPU id(0) HzSQuantizedConv

Conv_302 BPU id(0) HzSQuantizedConv

Conv_304 BPU id(0) HzSQuantizedConv

Conv_306 BPU id(0) HzSQuantizedConv

Conv_308 BPU id(0) HzSQuantizedConv

Concat_310 BPU id(0) Concat

Conv_311 BPU id(0) HzSQuantizedConv

Conv_313 BPU id(0) HzSQuantizedConv

Conv_315 BPU id(0) HzSQuantizedConv

Conv_317 BPU id(0) HzSQuantizedConv

Conv_319 BPU id(0) HzSQuantizedConv

Concat_321 BPU id(0) Concat

Conv_322 BPU id(0) HzSQuantizedConv

Conv_324 BPU id(0) HzSQuantizedConv

Conv_326 BPU id(0) HzSQuantizedConv

Conv_328 BPU id(0) HzSQuantizedConv

Conv_330 BPU id(0) HzSQuantizedConv

UNIT_CONV_FOR_1609_0.017994388937950_TO_FUSE_SCALE BPU id(0) HzSQuantizedConv

Concat_332 BPU id(0) Concat

Conv_333 BPU id(0) HzSQuantizedConv

Conv_335 BPU id(0) HzSQuantizedConv

Conv_337 BPU id(0) HzSQuantizedConv

Conv_339 BPU id(0) HzSQuantizedConv

Conv_341 BPU id(0) HzSQuantizedConv

Concat_343 BPU id(0) Concat

Conv_344 BPU id(0) HzSQuantizedConv

Conv_346 BPU id(0) HzSQuantizedConv

Conv_348 BPU id(0) HzSQuantizedConv

Conv_350 BPU id(0) HzSQuantizedConv

Conv_352 BPU id(0) HzSQuantizedConv

Concat_354 BPU id(0) Concat

Conv_355 BPU id(0) HzSQuantizedConv

Conv_357 BPU id(0) HzSQuantizedConv

Conv_359 BPU id(0) HzSQuantizedConv

Conv_361 BPU id(0) HzSQuantizedConv

Conv_363 BPU id(0) HzSQuantizedConv

Concat_365 BPU id(0) Concat

Conv_366 BPU id(0) HzSQuantizedConv

Conv_368 BPU id(0) HzSQuantizedConv

Conv_370 BPU id(0) HzSQuantizedConv

Conv_372 BPU id(0) HzSQuantizedConv

Conv_374 BPU id(0) HzSQuantizedConv

Conv_376 BPU id(0) HzSQuantizedConv

Conv_377 BPU id(0) HzSQuantizedConv

Conv_379 BPU id(0) HzSQuantizedConv

Conv_381 BPU id(0) HzSQuantizedConv

Conv_383 BPU id(0) HzSQuantizedConv

Conv_385 BPU id(0) HzSQuantizedConv

Sigmoid_386 BPU id(0) HzLut

Gather_388 CPU -- Gather

Gather_390 CPU -- Gather

Add_392 CPU -- Add

Div_394 CPU -- Div

Gather_396 CPU -- Gather

Add_398 CPU -- Add

Div_400 CPU -- Div

Less_402 CPU -- Less

Not_403 CPU -- Not

Greater_405 CPU -- Greater

Not_406 CPU -- Not

And_409 CPU -- And

Less_412 CPU -- Less

Not_413 CPU -- Not

And_416 CPU -- And

Greater_419 CPU -- Greater

Not_420 CPU -- Not

And_423 CPU -- And

Gather_426 CPU -- Gather

Less_428 CPU -- Less

Not_429 CPU -- Not

And_432 CPU -- And

Reshape_435 CPU -- Reshape

Expand_443 CPU -- Expand

Reshape_445 CPU -- Reshape

Expand_453 CPU -- Expand

Gather_455 CPU -- Gather

Gather_457 CPU -- Gather

Reshape_459 CPU -- Reshape

Sub_460 CPU -- Sub

Less_462 CPU -- Less

Gather_464 CPU -- Gather

Gather_466 CPU -- Gather

Reshape_468 CPU -- Reshape

Sub_469 CPU -- Sub

Greater_471 CPU -- Greater

And_474 CPU -- And

Gather_477 CPU -- Gather

Gather_479 CPU -- Gather

Reshape_481 CPU -- Reshape

Sub_482 CPU -- Sub

Less_484 CPU -- Less

And_487 CPU -- And

Gather_490 CPU -- Gather

Gather_492 CPU -- Gather

Reshape_494 CPU -- Reshape

Sub_495 CPU -- Sub

Greater_497 CPU -- Greater

And_500 CPU -- And

Cast_502 CPU -- Cast

Reshape_504 CPU -- Reshape

Expand_512 CPU -- Expand

Cast_513 CPU -- Cast

Cast_514 CPU -- Cast

Reshape_516 CPU -- Reshape

Expand_524 CPU -- Expand

Cast_525 CPU -- Cast

And_528 CPU -- And

And_532 CPU -- And

Gather_535 CPU -- Gather

Where_537 CPU -- Where

Reshape_539 CPU -- Reshape

Expand_547 CPU -- Expand

Where_548 CPU -- Where

ArgMax_549 CPU -- ArgMax

Expand_555 CPU -- Expand

Cast_557 CPU -- Cast

Equal_558 CPU -- Equal

Where_561 CPU -- Where

ReduceSum_562 CPU -- ReduceSum

Greater_564 CPU -- Greater

Where_565 CPU -- Where

Reshape_567 CPU -- Reshape

Cast_568 CPU -- Cast

And_571 CPU -- And

Where_573 CPU -- Where

Where_574 CPU -- Where

Gather_576 CPU -- Gather

Where_577 CPU -- Where

Reshape_585 CPU -- Reshape

TopK_586 CPU -- TopK

Reshape_594 CPU -- Reshape

Gather_595 CPU -- Gather

Unsqueeze_596 CPU -- Reshape

Reshape_604 CPU -- Reshape

Gather_605 CPU -- Gather

Unsqueeze_606 CPU -- Reshape

Gather_607 CPU -- Gather

Unsqueeze_608 CPU -- Reshape

Concat_609 CPU -- Concat

Concat_611 CPU -- Concat

Slice_616 CPU -- Slice

Slice_621 CPU -- Slice

Unsqueeze_622 CPU -- Reshape

Gather_624 CPU -- Gather

Unsqueeze_625 CPU -- Reshape

Mul_627 CPU -- Mul

Sub_629 CPU -- Sub

Reshape_630 CPU -- Reshape

Gather_638 CPU -- Gather

Gather_640 CPU -- Gather

Add_642 CPU -- Add

Div_643 CPU -- Div

Mul_645 CPU -- Mul

Add_647 CPU -- Add

Div_648 CPU -- Div

Mul_650 CPU -- Mul

Reshape_651 CPU -- Reshape

Reshape_652 CPU -- Reshape

Floor_653 CPU -- Floor

Cast_654 CPU -- Cast

Floor_655 CPU -- Floor

Cast_656 CPU -- Cast

Add_658 CPU -- Add

Add_660 CPU -- Add

Cast_661 CPU -- Cast

Sub_662 CPU -- Sub

Cast_663 CPU -- Cast

Sub_664 CPU -- Sub

Mul_665 CPU -- Mul

Unsqueeze_666 CPU -- Reshape

Cast_668 CPU -- Cast

Sub_669 CPU -- Sub

Cast_670 CPU -- Cast

Sub_671 CPU -- Sub

Mul_672 CPU -- Mul

Unsqueeze_673 CPU -- Reshape

Cast_675 CPU -- Cast

Sub_676 CPU -- Sub

Cast_677 CPU -- Cast

Sub_678 CPU -- Sub

Mul_679 CPU -- Mul

Unsqueeze_680 CPU -- Reshape

Cast_682 CPU -- Cast

Sub_683 CPU -- Sub

Cast_684 CPU -- Cast

Sub_685 CPU -- Sub

Mul_686 CPU -- Mul

Unsqueeze_687 CPU -- Reshape

Pad_703 CPU -- Pad

Add_705 CPU -- Add

Add_707 CPU -- Add

Add_709 CPU -- Add

Add_711 CPU -- Add

Less_713 CPU -- Less

Cast_714 CPU -- Cast

Mul_716 CPU -- Mul

Not_717 CPU -- Not

Cast_718 CPU -- Cast

Mul_719 CPU -- Mul

Add_720 CPU -- Add

Greater_722 CPU -- Greater

Cast_723 CPU -- Cast

Mul_725 CPU -- Mul

Not_726 CPU -- Not

Cast_727 CPU -- Cast

Mul_728 CPU -- Mul

Add_729 CPU -- Add

Less_731 CPU -- Less

Cast_732 CPU -- Cast

Mul_734 CPU -- Mul

Not_735 CPU -- Not

Cast_736 CPU -- Cast

Mul_737 CPU -- Mul

Add_738 CPU -- Add

Greater_740 CPU -- Greater

Cast_741 CPU -- Cast

Mul_743 CPU -- Mul

Not_744 CPU -- Not

Cast_745 CPU -- Cast

Mul_746 CPU -- Mul

Add_747 CPU -- Add

Less_749 CPU -- Less

Cast_750 CPU -- Cast

Mul_752 CPU -- Mul

Not_753 CPU -- Not

Cast_754 CPU -- Cast

Mul_755 CPU -- Mul

Add_756 CPU -- Add

Greater_758 CPU -- Greater

Cast_759 CPU -- Cast

Mul_761 CPU -- Mul

Not_762 CPU -- Not

Cast_763 CPU -- Cast

Mul_764 CPU -- Mul

Add_765 CPU -- Add

Less_767 CPU -- Less

Cast_768 CPU -- Cast

Mul_770 CPU -- Mul

Not_771 CPU -- Not

Cast_772 CPU -- Cast

Mul_773 CPU -- Mul

Add_774 CPU -- Add

Greater_776 CPU -- Greater

Cast_777 CPU -- Cast

Mul_779 CPU -- Mul

Not_780 CPU -- Not

Cast_781 CPU -- Cast

Mul_782 CPU -- Mul

Add_783 CPU -- Add

Reshape_784 CPU -- Reshape

Mul_786 CPU -- Mul

Add_787 CPU -- Add

Mul_789 CPU -- Mul

Add_790 CPU -- Add

Mul_792 CPU -- Mul

Add_793 CPU -- Add

Mul_795 CPU -- Mul

Add_796 CPU -- Add

Gather_797 CPU -- Gather

Gather_798 CPU -- Gather

Gather_799 CPU -- Gather

Gather_800 CPU -- Gather

Mul_801 BPU id(1) HzSElementwiseMul

Mul_802 BPU id(1) HzSElementwiseMul

UNIT_CONV_FOR_Add_803 BPU id(1) HzSQuantizedConv

Mul_804 BPU id(1) HzSElementwiseMul

UNIT_CONV_FOR_Add_805 BPU id(1) HzSQuantizedConv

Mul_806 BPU id(1) HzSElementwiseMul

UNIT_CONV_FOR_Add_807 BPU id(1) HzSQuantizedConv

Reshape_811 CPU -- Reshape

ReduceL2_813 CPU -- ReduceL2

Clip_814 CPU -- Clip

Expand_816 CPU -- Expand

Div_817_reciprocal CPU -- Reciprocal

Div_817_mul CPU -- Mul

Unsqueeze_818 CPU -- Reshape

2022-08-19 10:16:40,420 file: build.py func: build line No: 40 [Fri Aug 19 10:16:40 2022] End to Horizon NN Model Convert.

2022-08-19 10:16:40,437 file: onnx2horizonrt.py func: onnx2horizonrt line No: 3968 ONNX model output num : 2

2022-08-19 10:16:40,437 file: onnx2horizonrt.py func: onnx2horizonrt line No: 3723 model_deps_info: {'hb_mapper_version': '1.9.10'}

2022-08-19 10:16:40,442 file: onnx2horizonrt.py func: onnx2horizonrt line No: 1301 shape_cond: [16x16]

2022-08-19 10:16:40,442 file: onnx2horizonrt.py func: onnx2horizonrt line No: 1302 shape_x: [16x16]

2022-08-19 10:16:40,442 file: onnx2horizonrt.py func: onnx2horizonrt line No: 1303 shape_y: [1]

2022-08-19 10:16:40,443 file: onnx2horizonrt.py func: onnx2horizonrt line No: 1305 shape_out: [16x16]

2022-08-19 10:16:40,443 file: tool_utils.py func: tool_utils line No: 116 exception in command: checker

2022-08-19 10:16:40,448 file: tool_utils.py func: tool_utils line No: 117 Traceback (most recent call last):

File "/usr/local/lib/python3.6/site-packages/horizon_tc_ui/utils/tool_utils.py", line 114, in __decorator

func(*args, **kargs)

File "/usr/local/lib/python3.6/site-packages/horizon_tc_ui/hb_mapper.py", line 87, in checker

input_shape).run(__version__)

File "/usr/local/lib/python3.6/site-packages/horizon_tc_ui/hb_mapper_checker.py", line 141, in run

{"hb_mapper_version": version})

File "/usr/local/lib/python3.6/site-packages/horizon_tc_ui/hbdtort/onnx2horizonrt.py", line 3983, in build_runtime_model_wrapper

make_nodes(onnx_graph, runtime_graph)

File "/usr/local/lib/python3.6/site-packages/horizon_tc_ui/hbdtort/onnx2horizonrt.py", line 3410, in make_nodes

onnx_graph)

File "/usr/local/lib/python3.6/site-packages/horizon_tc_ui/hbdtort/onnx2horizonrt.py", line 1306, in convert_where

raise ValueError("unsupported broadcast mode")

ValueError: unsupported broadcast mode

2022-08-19 10:16:40,448 file: tool_utils.py func: tool_utils line No: 118 unsupported broadcast mode

算法工具链
征程5
评论1
0/1000
  • 颜值即正义
    Lv.2
    您好,根据您的日志来看,是where算子不满足约束导致的,如下图所示,这种类型的broadcast暂时不支持。

    详细的where算子约束信息,可以见我们的算子约束列表进行查看哈,如下图:

    关于您的情况:输入y是1D tensor并且size=1,可以通过将y的shape改成标量去重新转换下试试。

    2022-08-19
    0
    2
    • 西游回复颜值即正义:

      您好,这个最新的算子约束列表在哪里可以看到,我能下到的版本里并没有这样提示:

      2022-08-19
      0
    • 颜值即正义回复西游:

      您好,该算子的约束信息是最近添加的,等OE新发版后您就可以看到啦

      2022-08-19
      0