eleanor.jax.models#

class eleanor.jax.models.BrunoCell(shape, params=None, param_scale=1000000000000.0, variability=0.0, spikefn=<jax._src.custom_derivatives.custom_vjp object>, dtype=None, n_steps=1000, return_states=False, stop_tau_grad=True, stop_reset_grad=True, *, key)[source]#

Bases: NeuronModel

Implementation of a Ferroelectric Leaky Integrate and Fire (FeLIF) neuron model using Bruno for training [1]

Parameters:
property C_tot#

Total capacitance of the neuron

__call__(state, isyn, *, key=None)[source]#

Call self as a function.

Parameters:
  • state (Sequence[Array])

  • isyn (Array)

  • key (Key[Array, ''] | UInt32[Array, '2'] | UInt32[Array, '4'] | None)

init_state()[source]#

Initialize the state of the FeLIF model.

Parameters:
  • shape (Union[Sequence[int], int]) – Input shape of the layer.

  • key (PRNGKey) – JAX random key

Return type:

Initial state of the FeLIF neuron.

class eleanor.jax.models.BrunoParams(A=2.5e-11, t_hzo=1e-08, t_int=1.375e-09, eps_hzo=25.2, eps_int=33, E_a=1270000000.0, P_s=0.22, tau_0=1e-13, I_0=0.0001, V_t=0.32, C_par=1.5e-14, alpha=1.3, soft_E=5e-06, I_dsc=1e-11, threshold=2.5, dt=0.001)[source]#

Bases: object

Parameters of the Bruno neural model [1]

Parameters:
class eleanor.jax.models.CheckpointCell(*args, **kwargs)[source]#

Bases: BrunoCell

__call__(state, isyn, *, key=None)[source]#

Call self as a function.

Parameters:
  • state (Sequence[Array])

  • isyn (Array)

  • key (Key[Array, ''] | UInt32[Array, '2'] | UInt32[Array, '4'] | None)

class eleanor.jax.models.FeLIFCell(shape: collections.abc.Sequence[int], params: eleanor.jax.models._felif.FeLIFParams | None = None, variability: float = 0.0, spike_fn: collections.abc.Callable[[jax.Array], jax.Array] = <jax._src.custom_derivatives.custom_vjp object at 0x7f851ece9760>, dtype=None, return_states: bool = False, *, key: Union[jaxtyping.Key[Array, ''], jaxtyping.UInt32[Array, '2'], jaxtyping.UInt32[Array, '4']])[source]#

Bases: NeuronModel

Parameters:
__call__(state, synaptic_input, *, key=None)[source]#

Call self as a function.

Parameters:
  • state (Sequence[Array])

  • synaptic_input (Array)

  • key (Key[Array, ''] | UInt32[Array, '2'] | UInt32[Array, '4'] | None)

init_state()[source]#

Initialize the state of the FeLIF model.

Return type:

Initial state of the FeLIF neuron.

class eleanor.jax.models.FeLIFParams(tau_p=0.6, tau_m=0.95, P_s=0.27, alpha=1.0, beta=1.0, tau_alpha=1.3, E_a=1.0, soft_E=1e-18, threshold=1.0, dt=0.001)[source]#

Bases: object

Parameters of the FeLIF neuron model.

Parameters:
class eleanor.jax.models.HeraclesCell(shape, params=None, param_scale=1000000000000.0, variability=0.0, spike_fn=<jax._src.custom_derivatives.custom_vjp object>, dtype=None, n_steps=1000, return_states=False, *, key)[source]#

Bases: NeuronModel

Implementation of Heracles neural model [2]

Parameters:
__call__(state, synaptic_input, *, key=None)[source]#

Call self as a function.

Parameters:
  • state (Sequence[Array])

  • synaptic_input (Array)

  • key (Key[Array, ''] | UInt32[Array, '2'] | UInt32[Array, '4'] | None)

init_state()[source]#

Initialize the state of the Heracles model.

Return type:

Initial state of the Heracles neuron.

class eleanor.jax.models.HeraclesParams(A=2.5e-11, t_fe=9.8e-09, eps_fe=70, eps_depl=3.6, q_fix_depl=0.0945, n_depl=1.4e+28, e_off=20000000.0, temp=294, w_b=1.05, d_e=7.5e-09, P_s=0.27, I_0=0.0001, V_t=0.32, C_par=1.5e-14, C_fe=1.5811049864186072e-12, I_dsc=1e-11, threshold=3.5, dt=0.001)[source]#

Bases: object

Parameters of the Heracles neural model [2]

Parameters:
class eleanor.jax.models.NeuronModel[source]#

Bases: Module, ABC

Base class for neuron models. All neuron models should inherit from this class and implement the init_state and __call__ methods.

abstract __call__(state, x, *, key)[source]#

Call self as a function.

Parameters:
  • state (Sequence[Array])

  • x (Array)

  • key (Key[Array, ''] | UInt32[Array, '2'] | UInt32[Array, '4'])

class eleanor.jax.models.RNN(base_model_or_cls, *args, **kwargs)[source]#

Bases: Module

Wrapper to use a NeuronModel as a recurrent layer in a scan.

base_model#

Neuron model to be used as a recurrent layer.

Type:

NeuronModel

__call__(x, *, key=None)[source]#

Call self as a function.

Parameters:
  • x (Array)

  • key (Key[Array, ''] | UInt32[Array, '2'] | UInt32[Array, '4'] | None)

References#

[1] (1,2)

Luca Fehlings, Bojian Zhang, Paolo Gibertini, Martin A Nicholson, Erika Covi, and Fernando M Quintana. Bruno: backpropagation running undersampled for novel device optimisation. Neuromorphic Computing and Engineering, 6(2):024003, 2026. doi:10.1088/2634-4386/ae573b.

[2] (1,2)

Luca Fehlings, Md Hanif Ali, Paolo Gibertini, Egidio A Gallicchio, Udayan Ganguly, Veeresh Deshpande, and Erika Covi. Heracles: a hfo 2 ferroelectric capacitor compact model for efficient circuit simulations. IEEE Transactions on Electron Devices, 2025.