Sets the relevant decays.
(self, dt)
| 954 | self.refrac_count.zero_() # Refractory period counters. |
| 955 | |
| 956 | def compute_decays(self, dt) -> None: |
| 957 | # language=rst |
| 958 | """ |
| 959 | Sets the relevant decays. |
| 960 | """ |
| 961 | super().compute_decays(dt=dt) |
| 962 | self.decay = torch.exp( |
| 963 | -self.dt / self.tc_decay |
| 964 | ) # Neuron voltage decay (per timestep). |
| 965 | self.theta_decay = torch.exp( |
| 966 | -self.dt / self.tc_theta_decay |
| 967 | ) # Adaptive threshold decay (per timestep). |
| 968 | |
| 969 | def set_batch_size(self, batch_size) -> None: |
| 970 | # language=rst |
nothing calls this directly
no test coverage detected