Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Loading engine file with Python #2

Open
elisabetta496 opened this issue Feb 26, 2020 · 2 comments
Open

Loading engine file with Python #2

elisabetta496 opened this issue Feb 26, 2020 · 2 comments

Comments

@elisabetta496
Copy link

elisabetta496 commented Feb 26, 2020

Hi,
I have successfully used your tools to create a tensorrt engine and I'm trying to load the engine file with Python but the plugin is not found.

I'm using:

with open(engineFile, "rb") as f, trt.Runtime(G_LOGGER) as runtime: engine = runtime.deserialize_cuda_engine(f.read())

and getting the following error:

[TensorRT] ERROR: INVALID_ARGUMENT: getPluginCreator could not find plugin L2Norm_Helper_TRT version 1 [TensorRT] ERROR: safeDeserializationUtils.cpp (259) - Serialization Error in load: 0 (Cannot deserialize plugin since corresponding IPluginCreator not found in Plugin Registry) [TensorRT] ERROR: INVALID_STATE: std::exception [TensorRT] ERROR: INVALID_CONFIG: Deserialize the cuda engine failed.

Could you help me solving this issue?
I don't understand how to use the Python bindings you talked about in a previous topic. In which file I have to insert them?
Thanks

@Neel125
Copy link

Neel125 commented Apr 7, 2020

I also have the same error while loading the engine file in Python. In C++ I compile and build engine file Successfully. While loading in Python It gives me the same error. How can I use this custom layers in Python?

@Ram-Godavarthi
Copy link

@Neel125
Could you share the details, how you build it in C++
Did you use TRT 6 version or TRT 8.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants