Closed LXXIANG12 closed 3 months ago
拉一下这个PR的最新代码 https://github.com/PaddlePaddle/FastDeploy/pull/2112
编译时打开BUILD_PADDLE2ONNX=ON
-- FastDeploy version : 0.0.0 -- ENABLE_ORT_BACKEND : ON -- ENABLE_RKNPU2_BACKEND : OFF -- ENABLE_HORIZON_BACKEND : OFF -- ENABLE_SOPHGO_BACKEND : OFF -- ENABLE_PADDLE_BACKEND : ON -- ENABLE_LITE_BACKEND : OFF -- ENABLE_POROS_BACKEND : OFF -- ENABLE_TRT_BACKEND : ON -- ENABLE_OPENVINO_BACKEND : OFF -- ENABLE_TVM_BACKEND : OFF -- ENABLE_BENCHMARK : OFF -- ENABLE_VISION : ON -- ENABLE_TEXT : OFF -- ENABLE_ENCRYPTION : OFF -- ENABLE_FLYCV : OFF -- ENABLE_CVCUDA : OFF -- WITH_GPU : ON -- WITH_IPU : OFF -- WITH_OPENCL : OFF -- WITH_TESTING : OFF -- WITH_ASCEND : OFF -- WITH_DIRECTML : OFF -- WITH_TIMVX : OFF -- WITH_KUNLUNXIN : OFF -- WITH_CAPI : OFF -- WITH_CSHARPAPI : OFF -- ONNXRuntime version : 1.12.0 -- Paddle Inference version : 0.0.0 -- PADDLE_WITH_ENCRYPT : OFF -- PADDLE_WITH_AUTH : OFF -- CUDA_DIRECTORY : /usr/local/cuda -- TRT_DRECTORY : /home/nvidia/FastDeploy-develop/python/.setuptools-cmake-build/UNDEFINED -- Python executable : /home/nvidia/mambaforge/bin/python -- Python includes : /home/nvidia/mambaforge/include/python3.10 -- Configuring done (292.1s) -- Generating done (0.8s) -- Build files have been written to: /home/nvidia/FastDeploy-develop/python/.setuptools-cmake-build ['/home/nvidia/cmake/cmake-3.26.4-linux-aarch64/bin/cmake', '--build', '.', '--', '-j', '4']
[ 1%] Built target gen_onnx_proto
[ 1%] Built target extern_onnxruntime
[ 7%] Built target yaml-cpp
[ 8%] Built target gen_onnx_data_proto
[ 8%] Built target onnxifi_dummy
[ 8%] Built target gen_onnx_operators_proto
[ 9%] Built target yaml-cpp-sandbox
[ 10%] Built target yaml-cpp-parse
[ 10%] Built target yaml-cpp-read
[ 12%] Built target onnx_proto
[ 13%] Built target onnxifi_loader
[ 13%] Built target p2o_paddle_proto
[ 13%] Built target onnxifi_wrapper
[ 13%] Building CXX object third_party/onnx/CMakeFiles/onnx.dir/onnx/defs/sequence/defs.cc.o
[ 13%] Building CXX object third_party/onnx/CMakeFiles/onnx.dir/onnx/defs/tensor/utils.cc.o
[ 13%] Building CXX object third_party/onnx/CMakeFiles/onnx.dir/onnx/defs/tensor_proto_util.cc.o
[ 13%] Building CXX object third_party/onnx/CMakeFiles/onnx.dir/onnx/defs/tensor/old.cc.o
/home/nvidia/FastDeploy-develop/third_party/onnx/onnx/defs/sequence/defs.cc: In function ‘bool paddle2onnx::BuildSequenceMapBodyFunc(const pad dle2onnx::FunctionBodyBuildContext&, const paddle2onnx::OpSchema&, paddle2onnx::FunctionProto&)’:
/home/nvidia/FastDeploy-develop/third_party/onnx/onnx/defs/sequence/defs.cc:809:40: error: no match for ‘operator[]’ (operand types are ‘googl e::protobuf::RepeatedPtrField
按照以上官方教程编译报错: 环境:jetpack=4.6.1 cmake=3.26.4 gcc=7.3.1 python=3.10