pytorch / pytorch/tutorials

Feedback about Tensors

Open
#3,629 0 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.