On each simulation step, set the spikes of the population equal to the inputs. :param x: Inputs to the layer.
(self, x: torch.Tensor)
| 209 | ) |
| 210 | |
| 211 | def forward(self, x: torch.Tensor) -> None: |
| 212 | # language=rst |
| 213 | """ |
| 214 | On each simulation step, set the spikes of the population equal to the inputs. |
| 215 | |
| 216 | :param x: Inputs to the layer. |
| 217 | """ |
| 218 | # Set spike occurrences to input values. |
| 219 | self.s = x |
| 220 | |
| 221 | super().forward(x) |
| 222 | |
| 223 | def reset_state_variables(self) -> None: |
| 224 | # language=rst |