HazyResearch / flash-fft-conv

FlashFFTConv: Efficient Convolutions for Long Sequences with Tensor Cores
Apache License 2.0
264 stars 26 forks source link

Error during exporting the model #11

Open Songweiping opened 9 months ago

Songweiping commented 9 months ago

Hi authors,

Thanks for the great work! I use flash-fft-conv in my project and it works quite well. During tracing the model, I encounter a RuntimeError: Could not export Python function call 'FlashFFTConvFunc'. Remove calls to Python functions before export. Did you forget to add @script or @script_method annotation? If this is a nn.ModuleList, add it to __constants__

Do you know how to fix this issue? Thanks!