pub struct CubaLif {
pub tau_syn: Tensor,
pub tau_mem: Tensor,
pub r: Tensor,
pub v_leak: Tensor,
pub v_threshold: Tensor,
pub v_reset: Option<Tensor>,
pub w_in: Option<Tensor>,
pub metadata: MetadataMap,
}Expand description
Current-based leaky integrate-and-fire (CubaLIF).
Fields§
§tau_syn: TensorSynaptic time constant.
tau_mem: TensorMembrane time constant.
r: TensorResistance.
v_leak: TensorLeak voltage.
v_threshold: TensorFiring threshold.
v_reset: Option<Tensor>Reset potential (optional; Python defaults to zeros).
w_in: Option<Tensor>Input current weight (elementwise).
Upstream Python NIR defaults missing w_in to ones (broadcast). Use
None when the field is absent on the wire; v0.3 decode should
synthesize ones when needed.
metadata: MetadataMapFree-form node metadata (Python metadata dict).
Trait Implementations§
impl StructuralPartialEq for CubaLif
Auto Trait Implementations§
impl Freeze for CubaLif
impl RefUnwindSafe for CubaLif
impl Send for CubaLif
impl Sync for CubaLif
impl Unpin for CubaLif
impl UnsafeUnpin for CubaLif
impl UnwindSafe for CubaLif
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