Added
LowpassCell
,Lowpass
,AlphaCell
, andAlpha
layers now accept bothinitial_level_constraint
andtau_constraint
to customize how their respective parameters are constrained during training. (#21)
Changed
- The
tau
time constants forLowpassCell
,Lowpass
,AlphaCell
, andAlpha
are now always clipped to be positive in the forward pass rather than constraining the underlying trainable weights in between gradient updates. (#21) - Renamed the
Lowpass/Alpha
tau
parameter totau_initializer
, and it now acceptstf.keras.initializers.Initializer
objects (in addition to floats, as before). Renamed thetau_var
weight attribute totau
. (#21)
Fixed
SpikingActivation
,Lowpass
, andAlpha
layers will now correctly usekeras_spiking.default.dt
. (#20)