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

Shouldn't here be a +=? #20

Open
wendlerc opened this issue Jul 28, 2021 · 5 comments
Open

Shouldn't here be a +=? #20

wendlerc opened this issue Jul 28, 2021 · 5 comments

Comments

@wendlerc
Copy link

embedded = self.pe(embedded) # (T,B,H)

@shionhonda
Copy link
Contributor

shionhonda commented Aug 10, 2021

You're right. It should be +=

@sevencheung2021
Copy link

so ,line 58 should be a += ?

@wendlerc
Copy link
Author

wendlerc commented Apr 18, 2022 via email

@VincentBt
Copy link

I agree with @ChrislyBaer, it is fine the way it is: there is no need for a "+="
See https://pytorch.org/tutorials/beginner/transformer_tutorial.html#define-the-model

@shionhonda
Copy link
Contributor

@VincentBt You are definitely right. I'm sorry for confusing you all with my previous comment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants