Skip to content

docs: fix LSTM example import in rnn.LSTMModule #3138

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

arvindcr4
Copy link

@arvindcr4 arvindcr4 commented Aug 21, 2025

This PR fixes a minor import issue in the LSTMModule docstring example.

  • Add to the import alongside so the snippet runs as-is without raising a .

Documentation-only change.

Closes #3119

…P in the example import so the snippet runs without NameError.\n\nRefs: pytorch#3119
@Copilot Copilot AI review requested due to automatic review settings August 21, 2025 17:46
Copy link

pytorch-bot bot commented Aug 21, 2025

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/rl/3138

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 This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Aug 21, 2025
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes a missing import in the LSTM example docstring to ensure the code snippet runs without errors.

  • Add LSTMModule to the import statement alongside MLP in the docstring example

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Minor import typo
1 participant