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

Reason for doubling length in both LongConv and FlashFFTConv implementations #12

Open
nichoffs opened this issue Dec 22, 2023 · 1 comment

Comments

@nichoffs
Copy link

I noticed that, in flashfftconv_long_convs.py, the LongConv length is doubled during initialization.

self.L = L*2

Similarly, the FlashFFTConv class also has double the actual input length:

self.flashfftconv = FlashFFTConv(2048, dtype=torch.bfloat16)

Does this allow for bi-directional support or does it have something to do with wraparound during the convolution? What's the reason for the doubling?

Thanks!

@DanFu09
Copy link
Contributor

DanFu09 commented Dec 22, 2023 via email

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