转模型指令
atc --framework=5 --model=yolov7-C-onebatch.onnx --output=yolo7-C-onebatch --input_format=NCHW --input_shape=images:1,3,640,640 --soc_version=Ascend310P3 --log=info --insert_op_conf=aipp_nv12.cfg
报错
ATC start working now, please wait for a moment.
ATC run failed, Please check the detail log, Try ‘atc --help’ for more information
E50060: In op [Conv_9], [input bias format should be NCHW or NHWC when shape is 4D.]
input bias format should be NCHW or NHWC when shape is 4D.[FUNC:CheckConv2DBias][FILE:nn_calculation_ops.cc][LINE:4744]
In op [Conv_9], [input bias format should be NCHW or NHWC when shape is 4D.]
Call InferShapeAndType for node:Conv_9(Conv2D) failed[FUNC:Infer][FILE:infershape_pass.cc][LINE:117]
process pass InferShapePass on node:Conv_9 failed, ret:4294967295[FUNC:RunPassesOnNode][FILE:base_pass.cc][LINE:507]
build graph failed, graph id:0, ret:1343242270[FUNC:BuildModel][FILE:ge_generator.cc][LINE:1429]
后来初步排查,10系列显卡不行,3060显卡可以转换成功,目前不知道是什么原理,欢迎大佬评论。