From 98bbb02f909d09a05ced2c8ac2da098ac6f24589 Mon Sep 17 00:00:00 2001 From: Michelle Han Date: Fri, 25 Sep 2026 01:15:45 -0400 Subject: [PATCH] Fix broken MNIST and TensorDataset links in nn_tutorial 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 #3935 Co-Authored-By: Claude Opus 5.5 --- beginner_source/nn_tutorial.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/beginner_source/nn_tutorial.py b/beginner_source/nn_tutorial.py index e04815bd27e..afe7ab1a8f0 100644 --- a/beginner_source/nn_tutorial.py +++ b/beginner_source/nn_tutorial.py @@ -31,7 +31,7 @@ # MNIST data setup # ---------------- # -# We will use the classic `MNIST `_ dataset, +# We will use the classic `MNIST `_ dataset, # which consists of black-and-white images of hand-drawn digits (between 0 and 9). # # We will use `pathlib `_ @@ -473,7 +473,7 @@ def get_model(): # walks through a nice example of creating a custom ``FacialLandmarkDataset`` class # as a subclass of ``Dataset``. # -# PyTorch's `TensorDataset `_ +# PyTorch's `TensorDataset `_ # is a Dataset wrapping tensors. By defining a length and way of indexing, # this also gives us a way to iterate, index, and slice along the first # dimension of a tensor. This will make it easier to access both the