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
AttributeError: module 'torch' has no attribute 'get_default_device'
Versions
importtorchtorch.__version__# 2.2.1+cu121
The text was updated successfully, but these errors were encountered:
hyperkai
changed the title
torch.get_default_device() gets errortorch.get_default_device() gets error while torch.set_default_device() doesn't
May 19, 2024
@hyperkai hello, with the latest main (torch.__version__ 2.4.0a0+git7899034), I couldn't reproduce the error. I get the output cuda:0 when print(torch.get_default_device()) Please verify and if you are okay, we can close this issue. Thanks!
馃悰 Describe the bug
torch.get_default_device() gets error while torch.set_default_device() doesn't as shown below:
Versions
The text was updated successfully, but these errors were encountered: