46ded89f8013e706cec4d715a2576b30ebace514,bindsnet/network/nodes.py,IFNodes,step,#IFNodes#Any#Any#,169
Before Change
self.s = (self.v >= self.thresh) * (self.refrac_count == 0)
// Refractoriness and voltage reset.
self.refrac_count[self.s] = self.refrac
self.v[self.s] = self.reset
// Integrate input and decay voltages.
self.v += inpts
After Change
self.refrac_count[self.refrac_count != 0] -= dt
// Integrate input and decay voltages.
self.v += (self.refrac_count == 0).float() * inpts
// Check for spiking neurons.
self.s = self.v >= self.thresh
// Refractoriness and voltage reset.
self.refrac_count.masked_fill_(self.s, self.refrac)
self.v.masked_fill_(self.s, self.reset)
super().step(inpts, dt)
def reset_(self):
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 25
Instances
Project Name: BindsNET/bindsnet
Commit Name: 46ded89f8013e706cec4d715a2576b30ebace514
Time: 2018-07-19
Author: djsaunde@umass.edu
File Name: bindsnet/network/nodes.py
Class Name: IFNodes
Method Name: step
Project Name: BindsNET/bindsnet
Commit Name: 46ded89f8013e706cec4d715a2576b30ebace514
Time: 2018-07-19
Author: djsaunde@umass.edu
File Name: bindsnet/network/nodes.py
Class Name: DiehlAndCookNodes
Method Name: step
Project Name: BindsNET/bindsnet
Commit Name: 46ded89f8013e706cec4d715a2576b30ebace514
Time: 2018-07-19
Author: djsaunde@umass.edu
File Name: bindsnet/network/nodes.py
Class Name: LIFNodes
Method Name: step
Project Name: BindsNET/bindsnet
Commit Name: 46ded89f8013e706cec4d715a2576b30ebace514
Time: 2018-07-19
Author: djsaunde@umass.edu
File Name: bindsnet/network/nodes.py
Class Name: IFNodes
Method Name: step
Project Name: BindsNET/bindsnet
Commit Name: 46ded89f8013e706cec4d715a2576b30ebace514
Time: 2018-07-19
Author: djsaunde@umass.edu
File Name: bindsnet/network/nodes.py
Class Name: AdaptiveLIFNodes
Method Name: step