Skip to content

Commit

Permalink
Hot fix trt exporter
Browse files Browse the repository at this point in the history
  • Loading branch information
Thibault N committed Apr 5, 2022
1 parent 0d99941 commit 4657ec1
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions alonet/torch2trt/base_exporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
import tensorrt as trt
import pycuda.driver as cuda
prod_package_error = None
except Exception as prod_package_error:
except Exception as e:
prod_package_error = e
pass


Expand Down Expand Up @@ -93,10 +94,6 @@ def __init__(
"""
if prod_package_error is not None:
raise prod_package_error
if prod_package_error is not None:
raise prod_package_error
if prod_package_error is not None:
raise prod_package_error

if model is not None:
assert hasattr(model, "tracing") and model.tracing, "Model must be instantiated with tracing=True"
Expand Down

0 comments on commit 4657ec1

Please sign in to comment.