Note
Go to the end to download the full example code
Exponential Leaky Layer (ExpLeak)#
ExpLeak
layer.

import torch
from utils import plot_evolution
import sinabs.layers as sl
const_current = torch.ones((1, 100, 1)) * 0.03
exp_leak_neuron = sl.ExpLeak(tau_mem=60.0, record_states=True)
plot_evolution(exp_leak_neuron, const_current)
Total running time of the script: ( 0 minutes 0.201 seconds)