Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 [Bug] AttributeError: module \'torch_tensorrt\' has no attribute \'set_device\' #3084

Open
KumoLiu opened this issue Aug 14, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@KumoLiu
Copy link

KumoLiu commented Aug 14, 2024

Bug Description

AttributeError: module 'torch_tensorrt' has no attribute 'set_device'

To Reproduce

>>> import torch_tensorrt
>>> torch_tensorrt.set_device(0)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: module 'torch_tensorrt' has no attribute 'set_device'

Environment

nvcr.io/nvidian/pytorch:24.07-py3

@narendasan
Copy link
Collaborator

Yes this was moved to allow us to build Torch-TensorRT without C++. I would recommend using PyTorch's cuda apis

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants