Skip to content

Fix broken MNIST and TensorDataset links in nn_tutorial - #3969

Open
MichelleHan7 wants to merge 1 commit into
pytorch:mainfrom
MichelleHan7:fix-nn-tutorial-links
Open

MichelleHan7 wants to merge 1 commit into
pytorch:mainfrom
MichelleHan7:fix-nn-tutorial-links

Conversation

@MichelleHan7

Copy link
Copy Markdown

Fixes #3935

Description

Two links in "What is torch.nn really?" are dead:

  • MNIST: https://yann.lecun.com/exdb/mnist/index.html times out over HTTPS and returns 404 over HTTP. The sentence only introduces the dataset, so the link now points to the Wikipedia article on the MNIST database.
  • TensorDataset: https://pytorch.org/docs/stable/_modules/torch/utils/data/dataset.html#TensorDataset returns 404 because the /_modules/ source pages are gone. It now points to the TensorDataset entry in the torch.utils.data docs.

#3935 only mentions the MNIST link. I fixed the TensorDataset link here too because the PR link check tests every link in a changed file, so CI would fail with it left in. All other links in the file resolve.

If you'd rather keep a link to LeCun's original MNIST page, I can switch it to an archived copy.

Checklist

  • The issue that is being fixed is referred in the description (see above "Fixes #ISSUE_NUMBER")
  • Only one issue is addressed in this pull request
  • Labels from the issue that this PR is fixing are added to this pull request (the issue has no labels)
  • No unnecessary issues are included into this pull request.

🤖 Generated with Claude Code

The MNIST link to yann.lecun.com no longer resolves (HTTPS times out,
HTTP returns 404), so point it to the Wikipedia article on the MNIST
database. The TensorDataset link pointed to a /_modules/ source page
that now returns 404, so point it to the TensorDataset entry in the
torch.utils.data docs instead.

Fixes pytorch#3935

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@pytorch-bot

pytorch-bot Bot commented Sep 25, 2026

Copy link
Copy Markdown

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/tutorials/3969

Note: Links to docs will display an error until the docs builds have been completed.

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@meta-cla

meta-cla Bot commented Sep 25, 2026

Copy link
Copy Markdown

Hi @MichelleHan7!

Thank you for your pull request and welcome to our community.

Action Required

In order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you.

Process

In order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA.

Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with CLA signed. The tagging process may take up to 1 hour after signing. Please give it that time before contacting us about it.

If you have received this in error or have any questions, please contact us at cla@meta.com. Thanks!

@meta-cla

meta-cla Bot commented Sep 25, 2026

Copy link
Copy Markdown

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks!

@meta-cla meta-cla Bot added the cla signed label Sep 25, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feedback about What is torch.nn really?

1 participant