/usr/local/TensorRT-7.0.0.11/include/NvInfer.h:124:9: warning: ‘nvinfer1::Dims::type’ is deprecated [-Wdeprecated-declarations]
type[0] = type[1] = DimensionType::kSPATIAL;
^~~~
In file included from /usr/local/TensorRT-7.0.0.11/include/NvInferRuntime.h:59:0,
from /usr/local/TensorRT-7.0.0.11/include/NvInfer.h:53,
from /home/simple/my_desktop/yolov6_tensorrt_Cplusplus-main/src/yolov6.h:5,
from /home/simple/my_desktop/yolov6_tensorrt_Cplusplus-main/main.cpp:2:
/usr/local/TensorRT-7.0.0.11/include/NvInferRuntimeCommon.h:212:47: note: declared here
TRT_DEPRECATED DimensionType type[MAX_DIMS]; //!< The type of each dimension.
^
In file included from /home/simple/my_desktop/yolov6_tensorrt_Cplusplus-main/src/yolov6.h:5:0,
from /home/simple/my_desktop/yolov6_tensorrt_Cplusplus-main/main.cpp:2:
/usr/local/TensorRT-7.0.0.11/include/NvInfer.h:124:9: warning: ‘nvinfer1::Dims::type’ is deprecated [-Wdeprecated-declarations]
type[0] = type[1] = DimensionType::kSPATIAL;
您好,您使用的是什么版本的trt版本,我在本地使用 ubuntu18.04 + cuda10.2 + cudnn7.6.5 + trt 7.0.0.11 报warning: 报错内容如下:
请问这是trt版本高了导致的吗