apply_adaptive_currents¶
- apply_adaptive_currents(current: Tensor, adaptations: Tensor) Tensor[source]¶
Applies simple adaptation to presynaptic currents.
- Parameters:
current (torch.Tensor) – presynaptic currents, \(I_+\), in \(\text{nA}\).
adaptations (torch.Tensor) – \(k\) current adaptations, \(w_k\), in \(\text{nA}\).
- Returns:
adapted presynaptic currents.
- Return type:
Note
The first \(N - 1\) dimensions of
adaptationsmust be broadcastable withcurrent.See also
For an example, visit Adaptive Current, Linear in the zoo.