NVIDIA / TensorRT

NVIDIA® TensorRT™ is an SDK for high-performance deep learning inference on NVIDIA GPUs. This repository contains the open source components of TensorRT.
https://developer.nvidia.com/tensorrt
Apache License 2.0
10.81k stars 2.13k forks source link

Where is wheel file of TensorRT python bindings for Jetpack 4.4 and TensorRT 7.x? #4144

Open vuongnp opened 1 month ago

vuongnp commented 1 month ago

Environment:

Can I use tensorrt Python in the environment above? If so, please help me install it.

I saw an example in link using tensorrt python 7.2 But when I tried on my environment, I faced the following errors:

  In [1]: import tensorrt

  In [2]: tensorrt.IInt8LegacyCalibrator

  AttributeError: module 'tensorrt' has no attribute 'IInt8LegacyCalibrator'

Tried another command:

  In [1]: import tensorrt

  In [2]: tensorrt.__version__

  AttributeError: module 'tensorrt' has no attribute '__version__'

Thank you.

lix19937 commented 1 month ago

You can try to find / -name tensorrt.so, which is pytrt bind library.

vuongnp commented 1 month ago

Thanks. But I cannot find it. I think TensorRT 7.x doesn't support Python bindings.

moraxu commented 1 month ago

Can you try this way: https://forums.developer.nvidia.com/t/how-to-install-nvidia-tensorrt/250891