pub struct CubaLi {
pub tau_syn: Tensor,
pub tau_mem: Tensor,
pub r: Tensor,
pub v_leak: Tensor,
pub w_in: Option<Tensor>,
pub metadata: MetadataMap,
}Expand description
Current-based leaky integrator (CubaLI).
Fields§
§tau_syn: TensorSynaptic time constant.
tau_mem: TensorMembrane time constant.
r: TensorResistance.
v_leak: TensorLeak voltage.
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 CubaLi
Auto Trait Implementations§
impl Freeze for CubaLi
impl RefUnwindSafe for CubaLi
impl Send for CubaLi
impl Sync for CubaLi
impl Unpin for CubaLi
impl UnsafeUnpin for CubaLi
impl UnwindSafe for CubaLi
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