#[repr(i32)]pub enum AttentionNormalizationOp {
kNONE = 0,
kSOFTMAX = 1,
}Expand description
! ! \enum AttentionNormalizationOp ! ! \brief Enumerates the operations that may be performed by the normalization in the attention subgraph. !
Variants§
kNONE = 0
kSOFTMAX = 1
!< Apply softmax normalization on the attention scores on the s_kv dimension.
Trait Implementations§
Source§impl Clone for AttentionNormalizationOp
impl Clone for AttentionNormalizationOp
Source§fn clone(&self) -> AttentionNormalizationOp
fn clone(&self) -> AttentionNormalizationOp
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 moreSource§impl Debug for AttentionNormalizationOp
impl Debug for AttentionNormalizationOp
Source§impl From<AttentionNormalizationOp> for AttentionNormalizationOp
impl From<AttentionNormalizationOp> for AttentionNormalizationOp
Source§fn from(value: AttentionNormalizationOp) -> Self
fn from(value: AttentionNormalizationOp) -> Self
Converts to this type from the input type.
Source§impl Hash for AttentionNormalizationOp
impl Hash for AttentionNormalizationOp
Source§impl Into<AttentionNormalizationOp> for AttentionNormalizationOp
impl Into<AttentionNormalizationOp> for AttentionNormalizationOp
Source§fn into(self) -> AttentionNormalizationOp
fn into(self) -> AttentionNormalizationOp
Converts this type into the (usually inferred) input type.
Source§impl Ord for AttentionNormalizationOp
impl Ord for AttentionNormalizationOp
Source§fn cmp(&self, other: &AttentionNormalizationOp) -> Ordering
fn cmp(&self, other: &AttentionNormalizationOp) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for AttentionNormalizationOp
impl PartialEq for AttentionNormalizationOp
Source§impl PartialOrd for AttentionNormalizationOp
impl PartialOrd for AttentionNormalizationOp
impl Copy for AttentionNormalizationOp
impl Eq for AttentionNormalizationOp
impl StructuralPartialEq for AttentionNormalizationOp
Auto Trait Implementations§
impl Freeze for AttentionNormalizationOp
impl RefUnwindSafe for AttentionNormalizationOp
impl Send for AttentionNormalizationOp
impl Sync for AttentionNormalizationOp
impl Unpin for AttentionNormalizationOp
impl UnsafeUnpin for AttentionNormalizationOp
impl UnwindSafe for AttentionNormalizationOp
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