Sets the relevant decays.
(self, dt)
| 1120 | self.refrac_count.zero_() # Refractory period counters. |
| 1121 | |
| 1122 | def compute_decays(self, dt) -> None: |
| 1123 | # language=rst |
| 1124 | """ |
| 1125 | Sets the relevant decays. |
| 1126 | """ |
| 1127 | super().compute_decays(dt=dt) |
| 1128 | self.decay = torch.exp( |
| 1129 | -self.dt / self.tc_decay |
| 1130 | ) # Neuron voltage decay (per timestep). |
| 1131 | self.theta_decay = torch.exp( |
| 1132 | -self.dt / self.tc_theta_decay |
| 1133 | ) # Adaptive threshold decay (per timestep). |
| 1134 | |
| 1135 | def set_batch_size(self, batch_size) -> None: |
| 1136 | # language=rst |
nothing calls this directly
no test coverage detected