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:

torch.Tensor

Note

The first \(N - 1\) dimensions of adaptations must be broadcastable with current.

See also

For an example, visit Adaptive Current, Linear in the zoo.