Моя среда:
- Ubuntu 20.04
< li>CUDA 11.3 - tensorRT 8.5.1.7
- g++ 9.4
Ниже приведен код моей основной программы на C++, в которой возникнет ошибка сегментации после ввода nvinfer1::IExecutionContext* context = engine-> createExecutionContext();
std::string pluginLibraryPath = "mylibpath/libmmdeploy_tensorrt_ops.so";
std::string engineFilePath = "myenginepath/cascade-rcnn/end2end.engine";
std::string imagePath = "myimagepath/1544580881017339287.jpg";
// Load the TensorRT engine
nvinfer1::IRuntime* runtime = nvinfer1::createInferRuntime(gLogger);
assert(runtime != nullptr);
if (!runtime) {
std::cerr
Подробнее здесь: https://stackoverflow.com/questions/793 ... ation-erro