Check failed: is_found Can't find a Cast kernel for Cast op: Tensor<arm,int64_t,NCHW,0>:cast_2.tmp_0->Tensor<arm,float,NCHW,0>:slice
Created by: MaYiLong1998
paddle模型是onnx转换而来的,已经测试过模型的可用性,显示为可用:
paddle_lite_opt --print_model_ops=true --model_dir=./yolov3_traffic --valid_targets=arm
Paddle-Lite supports this model!
但是,当我使用opt转化工具时,报错了。 具体过程如下: paddle_lite_opt --model_file=./yolov3_traffic/model --valid_targets=arm --param_file=./yolov3_traffic/params --optimize_out_type=naive_buffer --optimize_out=yolov3_traffic_opt
WARNING: Logging before InitGoogleLogging() is written to STDERR I0804 13:49:51.582670 8225 cxx_api.cc:251] Load model from file. I0804 13:49:52.003726 8225 optimizer.h:202] == Running pass: lite_quant_dequant_fuse_pass I0804 13:49:52.027263 8225 optimizer.h:219] == Finished running: lite_quant_dequant_fuse_pass
......
I0804 13:49:52.203107 8225 optimizer.h:202] == Running pass: argument_type_display_pass I0804 13:49:52.203117 8225 optimizer.h:219] == Finished running: argument_type_display_pass I0804 13:49:52.203124 8225 optimizer.h:202] == Running pass: type_precision_cast_pass F0804 13:49:52.203557 8225 type_precision_cast_pass.cc:269] Check failed: is_found Can't find a Cast kernel for Cast op: Tensor<arm,int64_t,NCHW,0>:cast_2.tmp_0->Tensor<arm,float,NCHW,0>:slice *** Check failure stack trace: *** 已放弃 (核心已转储)
opt版本:2.6.1