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

Error when mask is of the same size as that of the input X #9

Closed
Vaibhavs10 opened this issue Jul 13, 2021 · 1 comment
Closed

Error when mask is of the same size as that of the input X #9

Vaibhavs10 opened this issue Jul 13, 2021 · 1 comment

Comments

@Vaibhavs10
Copy link

Hi,

First of all, thank you for putting such an easy to use implementation on GitHub.
I'm trying to incorporate the nystrom attention into a legacy codebase, it previously used to provide the input X and the mask (off the same dimensions as X) to a Multi headed Attention Layer.

When I'm trying to integrate nystrom attention with it, it runs alright without the mask.
But, when I pass the mask alongside it, it throws einops rearrange error.

Sorry, if this is a very basic question, but how would you recommend I deal with handling 3D mask (same dimensions as the size of input) in the codebase.

Best,
VB

@Vaibhavs10
Copy link
Author

I got confused with the dimensions, this is fixed now

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