Skip to content

Commit

Permalink
fix trace_decay buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
atenagm1375 committed Mar 24, 2021
1 parent 055429f commit 2715651
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cnsproject/network/neural_populations.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def __init__(
if self.additive_spike_trace:
self.register_buffer("trace_scale", torch.tensor(trace_scale))

self.register_buffer("trace_decay", torch.empty_like(tau_s))
self.register_buffer("trace_decay", torch.empty_like(self.tau_s))

self.is_inhibitory = is_inhibitory
self.learning = learning
Expand Down

0 comments on commit 2715651

Please sign in to comment.