Update translation_transformer.py
Calling yieldtokens() results in an attribute error if portalock library isn't installed. This needs to be installed before importing the dataset from torchtext.datasets. This was solved on a stackoverflow post: https://stackoverflow.com/questions/76302971/question-in-pytorch-transformer-tutorial-about-nonetype-object-has-no-attribut
Also recommend to add comment on ipynb notebook on https://pytorch.org/tutorials/beginner/translation_transformer.html
Fixes #ISSUE_NUMBER
Description
Added comments on line 24 and 25 to install portalock dependency.
Checklist
- [ x] The issue that is being fixed is referred in the description (see above "Fixes #ISSUE_NUMBER")
- [ x] Only one issue is addressed in this pull request
- [ x] Labels from the issue that this PR is fixing are added to this pull request
- [ x] No unnecessary issues are included into this pull request.
cc @pytorch/team-text-core @Nayef211
:link: Helpful Links
:test_tube: See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/tutorials/2506
- :page_facing_up: Preview Python docs built from this PR
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.
Deploy Preview for pytorch-tutorials-preview failed.
| Name | Link |
|---|---|
| Latest commit | 805ea6e1e78d51ab026e6e7b60dc7a06b7e83940 |
| Latest deploy log | https://app.netlify.com/sites/pytorch-tutorials-preview/deploys/64c7a39b3e6e5900084ef8a0 |
Looks like this PR hasn't been updated in a while so we're going to go ahead and mark this as Stale.
Feel free to remove the Stale label if you feel this was a mistake.
If you are unable to remove the Stale label please contact a maintainer in order to do so.
If you want the bot to never mark this PR stale again, add the no-stale label.Stale pull requests will automatically be closed after 30 days of inactivity.