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

About the patch size in your code? #2

Closed
lf-demo opened this issue May 15, 2023 · 1 comment
Closed

About the patch size in your code? #2

lf-demo opened this issue May 15, 2023 · 1 comment

Comments

@lf-demo
Copy link

lf-demo commented May 15, 2023

I have noticed that your expansion of pos_emb in class Transformer is different with the shape of moving mnist ? Should it be expanded to (src.size(0), 20, self.d_model, 16, 16) since your patch_size is 2 instead of 4?

@lf-demo
Copy link
Author

lf-demo commented May 15, 2023

I have noticed that your expansion of pos_emb in class Transformer is different with the shape of moving mnist ? Should it be expanded to (src.size(0), 20, self.d_model, 16, 16) since your patch_size is 2 instead of 4?

Sorry for the question. I have noticed the change of size for tensor in the encoder and decoder.

@lf-demo lf-demo closed this as completed May 15, 2023
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

1 participant