Feedback about Tensors
Open
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 9.3k
- Forks
- 4.4k
- Avg merge
- 1d 21h
- Merged PRs (30d)
- 4
Description
There is the following issue on this page: https://docs.pytorch.org/tutorials/beginner/basics/tensorqs_tutorial.html
if torch.cuda.is_available():
tensor = tensor.to(torch.accelerator.current_accelerator()) has a problem that module 'torch' has no attribute 'accelerator'
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Open the linked tensor Q&A tutorial and locate the source for the shown CUDA device-selection example. Verify the reported AttributeError against the supported PyTorch API, then update the tutorial example so it runs as documented; done means the example no longer references an unavailable torch attribute.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- documentation, machine-learning
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100