Skip to content

cuda12.2,tensorrt8.6,onnx转tensorrt报错 #339

Description

@upupbo

/home/c24702/code/C++_project/bisenet1/BiSeNet/tensorrt/trt_dep.cpp: In member function 'void SemanticSegmentTrt::parse_to_engine(std::string, std::string, std::string, std::string)':
/home/c24702/code/C++_project/bisenet1/BiSeNet/tensorrt/trt_dep.cpp:106:48: error: 'kBF16' is not a member of 'nvinfer1::BuilderFlag'
106 | config->setFlag(nvinfer1::BuilderFlag::kBF16);
| ^~~~~
/home/c24702/code/C++_project/bisenet1/BiSeNet/tensorrt/trt_dep.cpp: In member function 'std::vector SemanticSegmentTrt::inference(std::vector&)':
/home/c24702/code/C++_project/bisenet1/BiSeNet/tensorrt/trt_dep.cpp:229:14: error: 'class nvinfer1::IExecutionContext' has no member named 'setOutputTensorAddress'; did you mean 'getOutputTensorAddress'?
229 | context->setOutputTensorAddress(output_name.c_str(), buffs[1]);
| ^~~~~~~~~~~~~~~~~~~~~~
| getOutputTensorAddress
make[2]: *** [CMakeFiles/segment.dir/build.make:90: CMakeFiles/segment.dir/trt_dep.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:111: CMakeFiles/segment.dir/all] Error 2
make: *** [Makefile:91: all] Error 2
请问这个应该如何解决

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions