pub enum WeightState {
Absent,
Loaded(WeightBlob),
}Expand description
Whether a learned head has usable weights. Default construction is Absent (fail closed).
Variants§
Absent
No weights loaded — the head must abstain.
Loaded(WeightBlob)
Weights present — the reference forward pass may run.
Implementations§
Trait Implementations§
Source§impl Clone for WeightState
impl Clone for WeightState
Source§impl Debug for WeightState
impl Debug for WeightState
Source§impl Default for WeightState
impl Default for WeightState
Source§impl PartialEq for WeightState
impl PartialEq for WeightState
impl StructuralPartialEq for WeightState
Auto Trait Implementations§
impl Freeze for WeightState
impl RefUnwindSafe for WeightState
impl Send for WeightState
impl Sync for WeightState
impl Unpin for WeightState
impl UnsafeUnpin for WeightState
impl UnwindSafe for WeightState
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