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

Install PyTorch on Ubuntu 20.04 Proposed Changes #6265

Closed
Learath opened this issue Apr 16, 2023 · 1 comment · Fixed by #6738
Closed

Install PyTorch on Ubuntu 20.04 Proposed Changes #6265

Learath opened this issue Apr 16, 2023 · 1 comment · Fixed by #6738
Assignees

Comments

@Learath
Copy link

Learath commented Apr 16, 2023

Link: https://www.linode.com/docs/guides/pytorch-installation-ubuntu-2004/

Issue

When running the steps in 02 D Test your PyTorch Installation on ubuntu 2010 the provided examples don't function as expected when installed via pip:

print (torch.cuda.is_available)
<function is_available at 0x7f49cd9ef6d0>
print (torch.cuda.device_count)
<functools._lru_cache_wrapper object at 0x7f49bf2bd430>

Python3 expects () to actually execute the functions:

print (torch.cuda.is_available())
True
print (torch.cuda.device_count())
1

Suggested Fix

Update the docs to include the ().

@Rajakavitha1
Copy link
Collaborator

Thank you @Learath for raising the issue. This has now been fixed in #6738.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants