Skip to content

module 'torch' has no attribute 'set_default_device' #108

Answered by halx
mehmetaliyucel1 asked this question in Q&A
Discussion options

You must be logged in to vote

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.

pip install torch==2.3.1 torchvision==0.18.1 torchaudio==2.3.1

or see PyTorch install page.

Many thanks,
Hannes.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@mehmetaliyucel1
Comment options

Answer selected by mehmetaliyucel1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants