We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I am getting assertion error "Torch version is not compiled for CUDA support" when try to run on macosx Mojave.
The text was updated successfully, but these errors were encountered:
@naysumyat
A workaround:
net.cuda()
img = img.cuda()
net.load_state_dict(torch.load(cp, map_location=torch.device('cpu')))
Sorry, something went wrong.
@naysumyat A workaround: Open up test.py Comment out net.cuda() and img = img.cuda() lines Add map_location argument to torch.load: net.load_state_dict(torch.load(cp, map_location=torch.device('cpu')))
Thank you. it worked.
No branches or pull requests
I am getting assertion error "Torch version is not compiled for CUDA support" when try to run on macosx Mojave.
The text was updated successfully, but these errors were encountered: