module 'torch' has no attribute 'set_default_device' #108
Answered
by
halx
mehmetaliyucel1
asked this question in
Q&A
-
Hello, I am using macbook air m1. In the toml file I want to use, I changed the device to "cpu" but I am having this error "module 'torch' has no attribute 'set_default_device'" |
Beta Was this translation helpful? Give feedback.
Answered by
halx
Jul 9, 2024
Replies: 1 comment 1 reply
-
Hi, many thanks for your interest in REINVENT and welcome to the community! This is because the MacOSX Pytorch version is still at 1 in the requirements file. Can you update PyTorch to version 2, see if that works for you and let us know, please? We are unable to test MacOSX at the moment. E.g.
or see PyTorch install page. Many thanks, |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
mehmetaliyucel1
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
many thanks for your interest in REINVENT and welcome to the community!
This is because the MacOSX Pytorch version is still at 1 in the requirements file. Can you update PyTorch to version 2, see if that works for you and let us know, please? We are unable to test MacOSX at the moment.
E.g.
or see PyTorch install page.
Many thanks,
Hannes.