We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I'd like to save my model into TRT file. Could you please provide a sample code?
The text was updated successfully, but these errors were encountered:
Hi @talcs,
Thanks for reaching out.
Assuming you built your model like
model_trt = torch2trt(...)
You can then save the raw TensorRT engine like this.
with open("model.plan", 'wb') as f: f.write(model_trt.engine.serialize())
The input and output names will be
print(model_trt.input_names) print(model_trt.output_names)
Let me know if this helps or you run into any issues.
Best, John
Sorry, something went wrong.
No branches or pull requests
I'd like to save my model into TRT file. Could you please provide a sample code?
The text was updated successfully, but these errors were encountered: