pub struct MixtureLinkState {
pub components: Vec<LinkComponent>,
pub rho: Array1<f64>,
pub pi: Array1<f64>,
}Expand description
Runtime blended-link state with precomputed softmax weights.
Fields§
§components: Vec<LinkComponent>§rho: Array1<f64>Free logits for components [0..K-2]. The final component logit is fixed at 0.
pi: Array1<f64>Softmax-normalized component weights (length K).
Trait Implementations§
Source§impl Clone for MixtureLinkState
impl Clone for MixtureLinkState
Source§fn clone(&self) -> MixtureLinkState
fn clone(&self) -> MixtureLinkState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MixtureLinkState
impl Debug for MixtureLinkState
Source§impl<'de> Deserialize<'de> for MixtureLinkState
impl<'de> Deserialize<'de> for MixtureLinkState
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for MixtureLinkState
impl PartialEq for MixtureLinkState
Source§fn eq(&self, other: &MixtureLinkState) -> bool
fn eq(&self, other: &MixtureLinkState) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for MixtureLinkState
impl Serialize for MixtureLinkState
impl StructuralPartialEq for MixtureLinkState
Auto Trait Implementations§
impl Freeze for MixtureLinkState
impl RefUnwindSafe for MixtureLinkState
impl Send for MixtureLinkState
impl Sync for MixtureLinkState
impl Unpin for MixtureLinkState
impl UnsafeUnpin for MixtureLinkState
impl UnwindSafe for MixtureLinkState
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