-
Notifications
You must be signed in to change notification settings - Fork 34
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
Add TensorRT IErrorRecorder
Implementation
#54
base: master
Are you sure you want to change the base?
Conversation
- Adds a new thread-safe python class `TrTErrorRecorder` which implements the TensorRT `IErrorRecorder` interface. This class captures errors to display to the user, and can optionally terminate TensorRT processing when errors occur. - We now set the `error_recorder` field on the TensorRT `tensorrt.Builder` and `tensorrt.Runtime` classes to an instance of `TrTErrorRecorder`. - We now check for errors while initializing TensorRT engines, raising exceptions if TensorRT reports any errors to us.
I ran into several errors using TensorRT, and it was unclear why these errors were happening. Adding the TensorRT error reporter cleared up the issues for me entirely. The error messages TensorRT report to us look something like this:
It's not the most user friendly, but it's a lot more helpful of an error than a |
|
Just leaving an note here that I'm planning on investigating these issues this weekend and I haven't abandoned this. Going to pull it into Draft in the mean time. |
TrTErrorRecorder
which implements the TensorRTIErrorRecorder
interface. This class captures errors to display to the user, and can optionally terminate TensorRT processing when errors occur.error_recorder
field on the TensorRTtensorrt.Builder
andtensorrt.Runtime
classes to an instance ofTrTErrorRecorder
.