pub struct Lif {
pub tau: Tensor,
pub r: Tensor,
pub v_leak: Tensor,
pub v_threshold: Tensor,
pub v_reset: Option<Tensor>,
pub metadata: MetadataMap,
}Expand description
Leaky integrate-and-fire (LIF).
Fields§
§tau: TensorMembrane time constant.
r: TensorResistance.
v_leak: TensorLeak voltage.
v_threshold: TensorFiring threshold.
v_reset: Option<Tensor>Reset potential (optional).
metadata: MetadataMapFree-form node metadata (Python metadata dict).
Trait Implementations§
impl StructuralPartialEq for Lif
Auto Trait Implementations§
impl Freeze for Lif
impl RefUnwindSafe for Lif
impl Send for Lif
impl Sync for Lif
impl Unpin for Lif
impl UnsafeUnpin for Lif
impl UnwindSafe for Lif
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more