pytorch / pytorch/tutorials

Code examples missing in MaskedTensor Overview tutorial

Open
#3,523 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug build issue website
Dominant language
Python
Stars
9.3k
Forks
4.4k
Avg merge
1d 21h
Merged PRs (30d)
4

Description

📚 The doc issue

Apologies in advance if the tutorials section of the docs has a separate issue tracker.

Currently the code examples in the MaskedTensor Overview tutorial are not being rendered or are missing:

Image

This also seems to be an issue on the Sparsity page and the Advanced Semantics page:

Image

Copying/pasting the code block also does not reveal any hidden information, so this may not just be a rendering bug and perhaps the underlying data is missing.

Suggest a potential alternative/fix

I'm able to view versioned files in the API docs, but I'm not sure if there's a way to view old versions of tutorial documents.

cc @svekars @sekyondaMeta @AlannaBurke

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

Start by inspecting the MaskedTensor Overview, Sparsity, and Advanced Semantics tutorial pages linked in the report, then trace how their code examples are sourced and rendered. Compare the rendered pages with the tutorial content and verify that the examples appear correctly after the documentation build; the issue is resolved when all three pages display their code blocks.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, pytorch
Domain
documentation
Issue type
Documentation
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.