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

SNN usage problems #17

Open
enemy1205 opened this issue Jan 27, 2025 · 0 comments
Open

SNN usage problems #17

enemy1205 opened this issue Jan 27, 2025 · 0 comments

Comments

@enemy1205
Copy link

Once I use the spike neural network-related modules in Spike-Driven Transformer-V2, I encounter problems during training :
Trying to backward through the graph a second time (or directly access saved tensors after they have already been freed). Saved intermediate values of the graph are freed when you call .backward() or autograd.grad(). Specify retain_graph=True if you need to backward through the graph a second time or if you need to access saved tensors after calling backward.

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