MCPcopy Create free account
hub / github.com/BindsNET/bindsnet / reset_state_variables

Method reset_state_variables

bindsnet/network/nodes.py:109–120  ·  view source on GitHub ↗

Abstract base class method for resetting state variables.

(self)

Source from the content-addressed store, hash-verified

107 self.summed += x.float()
108
109 def reset_state_variables(self) -> None:
110 # language=rst
111 """
112 Abstract base class method for resetting state variables.
113 """
114 self.s.zero_()
115
116 if self.traces:
117 self.x.zero_() # Spike traces.
118
119 if self.sum_input:
120 self.summed.zero_() # Summed inputs.
121
122 def compute_decays(self, dt) -> None:
123 # language=rst

Callers 15

test_transferMethod · 0.45
run_pipelineFunction · 0.45
breakout.pyFile · 0.45
loc1d_mnist.pyFile · 0.45
SOM_LM-SNNs.pyFile · 0.45
conv3d_MNIST.pyFile · 0.45
reservoir.pyFile · 0.45
batch_eth_mnist.pyFile · 0.45
MCC_reservoir.pyFile · 0.45

Calls

no outgoing calls

Tested by 1

test_transferMethod · 0.36