Adaptive Leaky Integrate and Fire (ALIF)#

ALIF layer with an adaptive threshold based on the output spikes.

ALIF neuron dynamics
from utils import plot_evolution
import sinabs.layers as sl
import torch

const_current = torch.ones((1, 100, 1)) * 0.12

alif_neuron = sl.ALIF(
    tau_mem=40.0, tau_adapt=40.0, adapt_scale=20, norm_input=False, record_states=True
plot_evolution(alif_neuron, const_current)

Total running time of the script: ( 0 minutes 0.149 seconds)

Gallery generated by Sphinx-Gallery