Skip to content

Commit

Permalink
fixing graded surrogate gradient sign
Browse files Browse the repository at this point in the history
  • Loading branch information
chcaccac committed Feb 12, 2024
1 parent 242a47e commit 8ed81d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lava/lib/dl/slayer/spike/spike.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def _spike_backward(
)

return scale_rho * torch.exp(
-torch.clamp(voltage - threshold, max=0) / tau_rho
torch.clamp(voltage - threshold, max=0) / tau_rho
)


Expand Down

0 comments on commit 8ed81d5

Please sign in to comment.