Apollo自动驾驶开发笔记14——apollo移植编译aarch64版本(2)感知编译——tensorrt7.0移植8.4
- 编译
- 二、tensorrt 7到tensorrt 8错误
-
- 问题1 、DimsCHW
- 问题1 、DimsNCHW
- 问题1 、 error: ‘class nvinfer1::Dims4’ has no member named ‘c’
- 问题1 、has no member named ‘addPlugin’; did you mean ‘addPluginV2’?
- 问题1 、error: looser throw specifier for ‘virtual int nvinfer1::Int8EntropyCalibrator::getBatchSize() const’
- 问题1 、error: declaration of ‘virtual bool nvinfer1::Int8EntropyCalibrator::getBatch(void**, const char**, int)’ has a different exception specifier
- 问题1 、error: invalid use of incomplete type ‘class nvinfer1::IPlugin’
- 问题1 、./modules/perception/inference/tensorrt/plugins/argmax_plugin.h:37:19: error: ‘using Dims = class nvinfer1::Dims32’ {aka ‘class nvinfer1::Dims32’} has no member named ‘type’
- 问题1 、invalid new-expression of abstract class type ‘apollo::perception::inference::ReLUPlugin’
- 问题1 、error: expected ‘;’ at end of member declaration
- 问题1 、argmax_plugin.h:73:8: error: ‘void apollo::perception::inference::ArgMax1Plugin::configure(const Dims*, int, const Dims*ot override
- 问题1 、error: ‘Dims’ has not been declared
- 参考
相关基础资料:
1、NVIDIA TensorRT官方介绍:https://docs.nvidia.com/deeplearning/tensorrt/
2、TensorRT 8.4.3 : https://docs.nvidia.com/deeplearning/tensorrt/api/c_api/index.html
3、tensorrt 7.0 https://www.ccoderun.ca/programming/doxygen/tensorrt/deprecated.html
编译
bash apollo.sh build_gpu perception/camera
错误1
(14:09:46) ERROR: /mnt/ssd/apollo_7/apollo/modules/perception/inference/tensorrt/BUILD