pub enum RulePattern {
Hard,
Soft,
Gated,
}Expand description
Rule-based attention pattern
Applies attention based on logical rules (hard, soft, or gated).
Variants§
Hard
Hard masking: 0 or 1 based on rule satisfaction
Soft
Soft masking: continuous values based on rule confidence
Gated
Gated masking: learnable combination of rule and data-driven attention
Trait Implementations§
Source§impl Clone for RulePattern
impl Clone for RulePattern
Source§fn clone(&self) -> RulePattern
fn clone(&self) -> RulePattern
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for RulePattern
impl RefUnwindSafe for RulePattern
impl Send for RulePattern
impl Sync for RulePattern
impl Unpin for RulePattern
impl UnwindSafe for RulePattern
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