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

Method compute_decays

bindsnet/network/nodes.py:803–814  ·  view source on GitHub ↗

Sets the relevant decays.

(self, dt)

Source from the content-addressed store, hash-verified

801 self.refrac_count.zero_() # Refractory period counters.
802
803 def compute_decays(self, dt) -> None:
804 # language=rst
805 """
806 Sets the relevant decays.
807 """
808 super().compute_decays(dt=dt)
809 self.decay = torch.exp(
810 -self.dt / self.tc_decay
811 ) # Neuron voltage decay (per timestep).
812 self.i_decay = torch.exp(
813 -self.dt / self.tc_i_decay
814 ) # Synaptic input current decay (per timestep).
815
816 def set_batch_size(self, batch_size) -> None:
817 # language=rst

Callers

nothing calls this directly

Calls 1

compute_decaysMethod · 0.45

Tested by

no test coverage detected