Reapply "import Tensorrt not in compile time in order to dynamically load tensorrt only if nvidia gpu is present"

This reverts commit cf01e5d952.
This commit is contained in:
Alex Bezdieniezhnykh
2025-04-30 23:47:46 +03:00
parent cf01e5d952
commit 28069f63f9
4 changed files with 12 additions and 20 deletions
+1 -1
View File
@@ -16,7 +16,7 @@ from hardware_service cimport HardwareService
from security cimport Security
if HardwareService.has_nvidia_gpu():
from tensorrt_engine cimport TensorRTEngine
from tensorrt_engine import TensorRTEngine
else:
from onnx_engine import OnnxEngine