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

causal = True #5

Open
wajihullahbaig opened this issue Feb 24, 2021 · 2 comments
Open

causal = True #5

wajihullahbaig opened this issue Feb 24, 2021 · 2 comments

Comments

@wajihullahbaig
Copy link

wajihullahbaig commented Feb 24, 2021

Naive question!
causal = True , is this used to create a mask that trims/clips the diagonal right half of the attention matrix?

Thank you!

@lucidrains
Copy link
Owner

@wajihullahbaig yup! in linear attention, you do this with a cumulative sum instead of the triangular mask!

@wajihullahbaig
Copy link
Author

@wajihullahbaig yup! in linear attention, you do this with a cumulative sum instead of the triangular mask!

Much appreciated for the reply!

Thanks!

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

2 participants