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

Fix custom fwd and bwd for older PyTorch versions #608

Merged
merged 1 commit into from
Oct 27, 2024

Conversation

KokeCacao
Copy link
Contributor

Related to #596
The fix works okay and tested on my own project.
See #596 (comment)

@saurabh-kataria
Copy link

Hi, I had just opened an issue about this (#609). Your solution works. Thanks.

@vasqu
Copy link
Contributor

vasqu commented Oct 27, 2024

Sry about that! And thx for fixing it properly this time

@@ -1,16 +1,18 @@
import torch
from functools import partial
Copy link
Contributor

@vasqu vasqu Oct 27, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can safely remove this from functools import partial now :)

@tridao tridao merged commit 2017c98 into state-spaces:main Oct 27, 2024
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

Successfully merging this pull request may close these issues.

4 participants