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

ViTBlock implementation match schema #2283

Merged
merged 3 commits into from
Aug 30, 2022
Merged

Conversation

Excelsior7
Copy link
Contributor

@Excelsior7 Excelsior7 commented Aug 30, 2022

Since the schema presented at the top of the section is in agreement with the schema presented in the original paper (https://arxiv.org/abs/2010.11929), I therefore take this schema as the first reference to match the implementation with it. More specifically, I modify the implementation of the forward function of the ViTBlock object that I consider not to match the schema.

By submitting this pull request, I confirm that you can use, modify,
copy, and redistribute this contribution, under the terms of your
choice.

Since the schema presented at the top of the section is in agreement with the schema presented in the original paper (https://arxiv.org/abs/2010.11929), I therefore take this schema as the first reference to match the implementation with it. More specifically, I modify the implementation of the forward function of the ViTBlock object that I consider not to match the schema.
@d2l-bot
Copy link
Member

d2l-bot commented Aug 30, 2022

Job d2l-en/PR-2283/1 is complete.
Check the results at http://preview.d2l.ai/d2l-en/PR-2283/

@d2l-bot
Copy link
Member

d2l-bot commented Aug 30, 2022

Job d2l-en/PR-2283/2 is complete.
Check the results at http://preview.d2l.ai/d2l-en/PR-2283/

Copy link
Member

@astonzhang astonzhang left a comment

Choose a reason for hiding this comment

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

Thanks! I just renamed the variable for consistency in the rest of the book.

@astonzhang astonzhang merged commit 62f927c into d2l-ai:master Aug 30, 2022
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

Successfully merging this pull request may close these issues.

None yet

3 participants