Skip to content

Fix rsynaptic error on GPU #372

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions snntorch/_neurons/rsynaptic.py
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ def _base_state_function(self, input_):
+ input_
+ self.recurrent(self.spk)
)
base_fn_mem = self.beta.clamp(0, 1) * self.mem + base_fn_syn
base_fn_mem = nn.Parameter(self.beta.clamp(0, 1)) * self.mem + base_fn_syn
return base_fn_syn, base_fn_mem

def _base_state_reset_zero(self, input_):
Expand Down Expand Up @@ -535,4 +535,4 @@ def __init__(self, V):
self.V = V

def forward(self, x):
return x * self.V # element-wise or global multiplication
return nn.Parameter(x * self.V) # element-wise or global multiplication
Loading