Skip to content

docs(captum): fix in/is typo in Layer Attribution#3906

Open
mvanhorn wants to merge 1 commit into
pytorch:mainfrom
mvanhorn:osc/3905-fix-captum-typo
Open

docs(captum): fix in/is typo in Layer Attribution#3906
mvanhorn wants to merge 1 commit into
pytorch:mainfrom
mvanhorn:osc/3905-fix-captum-typo

Conversation

@mvanhorn
Copy link
Copy Markdown

Fixes #3905

Description

Summary

Closes #3905. The Captum intro tutorial (beginner_source/introyt/captumyt.py:51) ended its Layer Attribution definition with "...an input image in an example of layer attribution" - "in" where "is" was intended. Replace with is. The reporter caught this on the rendered docs page (https://docs.pytorch.org/tutorials/beginner/introyt/captumyt.html#id1).

Why this matters

The bullet two lines above defines Feature Attribution using the parallel construction "...is an example of feature attribution," so the surrounding text already signals what the intended phrasing should be. The typo turns the Layer Attribution sentence into a non-sentence, which trips readers who are otherwise following the intuition Sphinx Gallery is trying to build.

How to test

$ grep -n "an input image is an" beginner_source/introyt/captumyt.py
51:   output of a convolutional layer in response to an input image is an
$ grep -n "an input image in an" beginner_source/introyt/captumyt.py
(empty)

make html-noplot GALLERY_PATTERN="captumyt.py" builds clean as a quick Sphinx structure validation (no GPU needed).

Checklist

  • The issue that is being fixed is referred in the description (see above "Fixes Typo in "Model Understanding with Captum" tutorial #3905")
  • Only one issue is addressed in this pull request
  • Labels from the issue that this PR is fixing are added to this pull request
  • No unnecessary issues are included into this pull request.

AI-assisted.

The Captum intro tutorial defined Layer Attribution as
"...an input image in an example of layer attribution" - "in" used
where "is" was intended. The corresponding Feature Attribution
bullet a few lines above uses the parallel construction "...is an
example of feature attribution," so the surrounding text already
signals the intended phrasing. Replace "in" with "is".

Fixes pytorch#3905
@pytorch-bot
Copy link
Copy Markdown

pytorch-bot Bot commented May 22, 2026

🔗 Helpful Links

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

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 added the cla signed label May 22, 2026
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.

Typo in "Model Understanding with Captum" tutorial

1 participant