Pin tensorrt<=10.1.0 to fix libnvinfer_builder_resource_win.so.10.2.0 error (#14239)

Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>
This commit is contained in:
Glenn Jocher 2024-07-06 11:22:50 +02:00 committed by GitHub
parent 26a664f636
commit 209f90b35c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 7 additions and 8 deletions

View file

@ -225,7 +225,7 @@ class AutoBackend(nn.Module):
import tensorrt as trt # noqa https://developer.nvidia.com/nvidia-tensorrt-download
except ImportError:
if LINUX:
check_requirements("tensorrt", cmds="-U")
check_requirements("tensorrt>7.0.0,<=10.1.0")
import tensorrt as trt # noqa
check_version(trt.__version__, "7.0.0", hard=True) # require tensorrt>=7.0.0
if device.type == "cpu":