使用medficientsam模型进行ATC模型转换报错,[ResizeBilinearV2] 算子不支持,以下是报错部分log文件,怎么解决
收藏回复举报
使用medficientsam模型进行ATC模型转换报错,[ResizeBilinearV2] 算子不支持,以下是报错部分log文件,怎么解决
t('forum.solved') 已解决
发表于2024-08-08 17:36:06
0 查看
[INFO] GE(3097617,atc.bin):2024-08-08-17:27:41.901.808 [dnnengine_manager.cc:41][EVENT]3097617 ~InvokeFuncPerfRecorder:[GEPERFTRACE] The time cost of InvokeAll [Finalize] in [librts_engine.so] is [7] micro second. 

[INFO] GE(3097617,atc.bin):2024-08-08-17:27:41.902.072 [gelib.cc:329][EVENT]3097617 SystemFinalize:Infer finalize GELib success. 

... 

ATC run failed, Please check the detail log, Try 'atc --help' for more information 

EZ3002: 2024-08-08-17:27:41.541.224 Optype [ResizeBilinearV2] of Ops kernel [AIcoreEngine] is unsupported. Reason: [tbe-custom]:op type ResizeBilinearV2 is not found in this op store.[tbe-custom]:op type ResizeBilinearV2 is not found in this op store.[Dynamic shape check]: data type DT_UINT8 of input [x] is not supported. All supported data type and format of tensor input0.x is: Data Type: {DT_FLOAT16,DT_FLOAT,DT_FLOAT16}Format:{NC1HWC0,NC1HWC0,NC1HWC0}[Static shape check]:data type DT_UINT8 of input [x] is not supported. All supported data type and format of tensor input0.x is: Data Type: {DT_FLOAT16,DT_FLOAT,DT_FLOAT16}Format:{NC1HWC0,NC1HWC0,NC1HWC0}. 

        Possible Cause: The operator type is unsupported in the operator information library due to specification mismatch. 

        Solution: Submit an issue to request for support at https://gitee.com/ascend, or remove this type of operators from your model. 

        TraceBack (most recent call last): 

        Optype [ResizeBilinearV2] of Ops kernel [aicpu_ascend_kernel] is unsupported. Reason: dataType DT_UINT8 of output[0, y is unsupported, op type[ResizeBilinearV2].. 

        Optype [ResizeBilinearV2] of Ops kernel [aicpu_tf_kernel] is unsupported. Reason: dataType DT_UINT8 of output[0, y is unsupported, op type[ResizeBilinearV2].. 

        No supported Ops kernel and engine are found for [PartitionedCall_/Resize_Resize_4_ascend_mbatch_batch_0ResizeBilinearV2], optype [ResizeBilinearV2]. 

        Assert ((SelectEngine(node_ptr, exclude_engines, is_check_support_success, op_info)) == ge::SUCCESS) failed[FUNC:operator()][FILE:engine_place.cc][LINE:144] 

        No supported Ops kernel and engine are found for [PartitionedCall_/Resize_Resize_4_ascend_mbatch_batch_1ResizeBilinearV2], optype [ResizeBilinearV2]. 

        build graph failed, graph id:0, ret:-1[FUNC:BuildModelWithGraphId][FILE:ge_generator.cc][LINE:1608] 

        GenerateOfflineModel execute failed. 

[INFO] RUNTIME(3097617,atc.bin):2024-08-08-17:27:42.110.950 [runtime.cc:1935] 3097617 ~Runtime: deconstruct runtime 

[INFO] RUNTIME(3097617,atc.bin):2024-08-08-17:27:42.110.964 [runtime.cc:1942] 3097617 ~Runtime: wait monitor success, use=0. 

Convert model environment variables:  

export PATH=$PATH:/home/xyt/Ascend/ascend-toolkit/8.0.RC3.alpha001/compiler/ccec_compiler/bin:/home/xyt/Ascend/ascend-toolkit/8.0.RC3.alpha001/compiler/bin && export PYTHONPATH=$PYTHONPATH:/home/xyt/Ascend/ascend-toolkit/8.0.RC3.alpha001/compiler/python/site-packages:/home/xyt/Ascend/ascend-toolkit/8.0.RC3.alpha001/compiler/python/site-packages/schedule_search.egg:/home/xyt/Ascend/ascend-toolkit/8.0.RC3.alpha001/opp/op_impl/built-in/ai_core/tbe && export LD_LIBRARY_PATH=/home/xyt/Ascend/ascend-toolkit/8.0.RC3.alpha001/compiler/lib64:/usr/local/Ascend/driver/lib64:/usr/local/Ascend/driver/lib64/driver:/home/xyt/Ascend/ascend-toolkit/8.0.RC3.alpha001/add-ons:/home/xyt/Ascend/ascend-toolkit/8.0.RC3.alpha001/runtime/lib64:$LD_LIBRARY_PATH:/home/xyt/Ascend/ascend-toolkit/8.0.RC3.alpha001/x86_64-linux/devlib:/home/xyt/Ascend/ascend-toolkit/8.0.RC3.alpha001/aarch64-linux/devlib:/home/xyt/Ascend/ascend-toolkit/8.0.RC3.alpha001/tools/aoe/lib64:/home/xyt/Ascend/ascend-toolkit/8.0.RC3.alpha001/compiler/lib64/plugin/opskernel && export ASCEND_OPP_PATH=/home/xyt/Ascend/ascend-toolkit/8.0.RC3.alpha001/opp && export ASCEND_SLOG_PRINT_TO_STDOUT=1 

Convert model command:  

/home/xyt/Ascend/ascend-toolkit/8.0.RC3.alpha001/compiler/bin/atc  --input_shape="image:1,3,-1,-1" --input_fp16_nodes="image" --check_report=/home/xyt/modelzoo/encoder/Ascend310/network_analysis.report --input_format=NCHW --output="/home/xyt/tmp/1723109253124/Ascend310/encoder" --soc_version=Ascend310 --dynamic_image_size="214,214;512,512" --framework=5 --model="/home/xyt/tmp/1723107513000/encoder.onnx"  

我要发帖子