Skip to content

Commit

Permalink
chore: Update refractory period calculation in IFNodes_PredInf
Browse files Browse the repository at this point in the history
  • Loading branch information
Hananel-Hazan committed Jul 22, 2024
1 parent 5dc62b8 commit 883f29b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bindsnet/network/nodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -1766,7 +1766,8 @@ def __init__(

self.Fire_only_Once = Fire_only_Once
if self.Fire_only_Once:
self.refrac = torch.iinfo(torch.int32).max
self.refrac = torch.ones_like(self.refrac) * torch.iinfo(torch.int32).max


self.lbound = lbound # Lower bound of voltage.

Expand Down

0 comments on commit 883f29b

Please sign in to comment.