You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 14, 2025. It is now read-only.
I am getting this error while compiling for int8. The same code works fine for FP32 and FP16
[05/31/2022-05:46:12] [TRT] [E] 1: Unexpected exception
Traceback (most recent call last):
File "./onnx_to_tensorrt.py", line 218, in <module>
main()
File "./onnx_to_tensorrt.py", line 213, in main
with builder.build_engine(network, config) as engine, open(args.output, "wb") as f:
AttributeError: __enter__
The text was updated successfully, but these errors were encountered:
Just delete the pycuda.autoinit in ImagenetCalibrator.py and add it in the beginning of the onnx_to_tensor.py the generated engine should live in the CUDA context created by the pycuda
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I am getting this error while compiling for int8. The same code works fine for FP32 and FP16
The text was updated successfully, but these errors were encountered: