Skip to content

Conversation

@kiersten-stokes
Copy link
Contributor

@kiersten-stokes kiersten-stokes commented Mar 7, 2023

Super small PR that closes #1430

This isn't high priority, but can help with clarity for those learning the concepts. It also prevents an error from being thrown unnecessarily if not all cells of the notebook have been run in the same session. This tutorial has very similar code snippets, and this change makes the code consistent between the two.

Link to tutorial in question.

cc @suraj813 @pytorch/team-text-core

@netlify
Copy link

netlify bot commented Mar 7, 2023

Deploy Preview for pytorch-tutorials-preview ready!

Name Link
🔨 Latest commit 8569cf0
🔍 Latest deploy log https://app.netlify.com/sites/pytorch-tutorials-preview/deploys/64245526ea80760008802b7c
😎 Deploy Preview https://deploy-preview-2243--pytorch-tutorials-preview.netlify.app/intermediate/reinforcement_ppo
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@Nayef211
Copy link
Contributor

Nayef211 commented Mar 7, 2023

@svekars I don't think this should be assigned to torchtext as it is a general tutorial change.

@kiersten-stokes
Copy link
Contributor Author

@suraj813 kindly pinging you for review 🙂

@subramen subramen assigned subramen and unassigned subramen Mar 28, 2023
@subramen subramen self-requested a review March 28, 2023 20:23
Copy link
Contributor

@subramen subramen left a comment

Choose a reason for hiding this comment

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

No PR is too small
Thanks @kiersten-stokes for improving the quality and correctness of the tutorial!

@svekars svekars merged commit 8475fd9 into pytorch:main Mar 29, 2023
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.

Problem of "SAVING AND LOADING A GENERAL CHECKPOINT IN PYTORCH"

5 participants