Skip to content
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

Remove improper src_mask from encoder tutorial #2423

Merged
merged 1 commit into from
Jun 5, 2023

Conversation

bjhargrave
Copy link
Contributor

@bjhargrave bjhargrave commented Jun 5, 2023

Fixes #1877
The tutorial is using a transformer encoder and the mask used was for masking a decoder which is not part of the tutorial.

The mask is removed. Some variable names are changed to better reflect the purpose of the variable. Also, some unused imports are removed.

Checklist

  • The issue that is being fixed is referred in the description (see above "Fixes #ISSUE_NUMBER")
  • 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.

cc @pytorch/team-text-core @Nayef211

The tutorial is using a transformer encoder and the mask used was for
masking a decoder which is not part of the tutorial.

The mask is removed. Some variable names are changed to better reflect
the purpose of the variable. Also, some unused imports are removed.

Fixes pytorch#1877

Signed-off-by: BJ Hargrave <hargrave@us.ibm.com>
@netlify
Copy link

netlify bot commented Jun 5, 2023

Deploy Preview for pytorch-tutorials-preview ready!

Name Link
🔨 Latest commit 2509680
🔍 Latest deploy log https://app.netlify.com/sites/pytorch-tutorials-preview/deploys/647df2ff58cddf000817c691
😎 Deploy Preview https://deploy-preview-2423--pytorch-tutorials-preview.netlify.app
📱 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.

@github-actions github-actions bot added module: torchtext docathon-h1-2023 A label for the docathon in H1 2023 medium and removed cla signed labels Jun 5, 2023
Copy link
Contributor

@Nayef211 Nayef211 left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks for helping improve PyTorch tutorials @bjhargrave

@svekars svekars merged commit f1cb62c into pytorch:main Jun 5, 2023
12 checks passed
@bjhargrave bjhargrave deleted the issues/1877 branch June 5, 2023 20:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Transformer Language Model Tutorial - Incorrect Attention Mask Description
4 participants