How Do I Solve the API Adaptation Problem After the Upgrade of tensort? From 8.5 to 10.3

nvidia@nvidia-desktop:~/Desktop/MC/segment/build$ make
Consolidate compiler generated dependencies of target yolov8-seg
[ 25%] Building CXX object CMakeFiles/yolov8-seg.dir/beltOffsetAnalyse.cpp.o
In file included from /home/nvidia/Desktop/MC/segment/beltOffsetAnalyse.cpp:9:
/home/nvidia/Desktop/MC/segment/include/yolov8-seg.hpp: In constructor ‘YOLOv8_seg::YOLOv8_seg(const string&)’:
/home/nvidia/Desktop/MC/segment/include/yolov8-seg.hpp:75:40: error: ‘class nvinfer1::ICudaEngine’ has no member named ‘getNbBindings’
75 | this->num_bindings = this->engine->getNbBindings();
| ^~~~~~~~~~~~~
/home/nvidia/Desktop/MC/segment/include/yolov8-seg.hpp:80:50: error: ‘class nvinfer1::ICudaEngine’ has no member named ‘getBindingDataType’; did you mean ‘getTensorDataType’?
80 | nvinfer1::DataType dtype = this->engine->getBindingDataType(i);
| ^~~~~~~~~~~~~~~~~~
| getTensorDataType
/home/nvidia/Desktop/MC/segment/include/yolov8-seg.hpp:81:50: error: ‘class nvinfer1::ICudaEngine’ has no member named ‘getBindingName’
81 | std::string name = this->engine->getBindingName(i);
| ^~~~~~~~~~~~~~
/home/nvidia/Desktop/MC/segment/include/yolov8-seg.hpp:85:32: error: ‘class nvinfer1::ICudaEngine’ has no member named ‘bindingIsInput’
85 | bool IsInput = engine->bindingIsInput(i);
| ^~~~~~~~~~~~~~
/home/nvidia/Desktop/MC/segment/include/yolov8-seg.hpp:88:42: error: ‘class nvinfer1::ICudaEngine’ has no member named ‘getProfileDimensions’
88 | dims = this->engine->getProfileDimensions(i, 0, nvinfer1::OptProfileSelector::kMAX);
| ^~~~~~~~~~~~~~~~~~~~
/home/nvidia/Desktop/MC/segment/include/yolov8-seg.hpp:93:28: error: ‘class nvinfer1::IExecutionContext’ has no member named ‘setBindingDimensions’
93 | this->context->setBindingDimensions(i, dims);
| ^~~~~~~~~~~~~~~~~~~~
/home/nvidia/Desktop/MC/segment/include/yolov8-seg.hpp:96:43: error: ‘class nvinfer1::IExecutionContext’ has no member named ‘getBindingDimensions’
96 | dims = this->context->getBindingDimensions(i);
| ^~~~~~~~~~~~~~~~~~~~
/home/nvidia/Desktop/MC/segment/include/yolov8-seg.hpp: In destructor ‘YOLOv8_seg::~YOLOv8_seg()’:
/home/nvidia/Desktop/MC/segment/include/yolov8-seg.hpp:107:20: error: ‘class nvinfer1::IExecutionContext’ has no member named ‘destroy’
107 | this->context->destroy();
| ^~~~~~~
/home/nvidia/Desktop/MC/segment/include/yolov8-seg.hpp:108:19: error: ‘class nvinfer1::ICudaEngine’ has no member named ‘destroy’
108 | this->engine->destroy();
| ^~~~~~~
/home/nvidia/Desktop/MC/segment/include/yolov8-seg.hpp:109:20: error: ‘class nvinfer1::IRuntime’ has no member named ‘destroy’
109 | this->runtime->destroy();
| ^~~~~~~
/home/nvidia/Desktop/MC/segment/include/yolov8-seg.hpp: In member function ‘void YOLOv8_seg::copy_from_Mat(const cv::Mat&)’:
/home/nvidia/Desktop/MC/segment/include/yolov8-seg.hpp:199:19: warning: narrowing conversion of ‘width’ from ‘long int’ to ‘int’ [-Wnarrowing]
199 | cv::Size size{width, height};
| ^~~~~
/home/nvidia/Desktop/MC/segment/include/yolov8-seg.hpp:199:26: warning: narrowing conversion of ‘height’ from ‘long int’ to ‘int’ [-Wnarrowing]
199 | cv::Size size{width, height};
| ^~~~~~
/home/nvidia/Desktop/MC/segment/include/yolov8-seg.hpp:202:20: error: ‘class nvinfer1::IExecutionContext’ has no member named ‘setBindingDimensions’
202 | this->context->setBindingDimensions(0, nvinfer1::Dims{4, {1, 3, height, width}});
| ^~~~~~~~~~~~~~~~~~~~
/home/nvidia/Desktop/MC/segment/include/yolov8-seg.hpp: In member function ‘void YOLOv8_seg::copy_from_Mat(const cv::Mat&, cv::Size&)’:
/home/nvidia/Desktop/MC/segment/include/yolov8-seg.hpp:212:20: error: ‘class nvinfer1::IExecutionContext’ has no member named ‘setBindingDimensions’
212 | this->context->setBindingDimensions(0, nvinfer1::Dims{4, {1, 3, size.height, size.width}});
| ^~~~~~~~~~~~~~~~~~~~
/home/nvidia/Desktop/MC/segment/include/yolov8-seg.hpp: In member function ‘void YOLOv8_seg::infer()’:
/home/nvidia/Desktop/MC/segment/include/yolov8-seg.hpp:220:20: error: ‘class nvinfer1::IExecutionContext’ has no member named ‘enqueueV2’; did you mean ‘enqueueV3’?
220 | this->context->enqueueV2(this->device_ptrs.data(), this->stream, nullptr);
| ^~~~~~~~~
| enqueueV3
make[2]: *** [CMakeFiles/yolov8-seg.dir/build.make:90: CMakeFiles/yolov8-seg.dir/beltOffsetAnalyse.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:83: CMakeFiles/yolov8-seg.dir/all] Error 2
make: *** [Makefile:91: all] Error 2
I’m running into this issue when recompiling, how do I quickly find the API for the updated version?