pub enum ComponentDomain {
TokenIds,
PatchMatrix,
AudioFeatures,
HiddenStates,
Logits,
TargetStates,
}Expand description
Logical value domain crossing a component boundary.
Variants§
TokenIds
Integer token identities.
PatchMatrix
Prepacked image or video patches.
AudioFeatures
Prepared audio features or codebook identities.
HiddenStates
Decoder-width hidden activations.
Logits
Vocabulary logits.
TargetStates
Ordered target block states consumed by a draft model.
Trait Implementations§
Source§impl Clone for ComponentDomain
impl Clone for ComponentDomain
Source§fn clone(&self) -> ComponentDomain
fn clone(&self) -> ComponentDomain
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 moreimpl Copy for ComponentDomain
Source§impl Debug for ComponentDomain
impl Debug for ComponentDomain
impl Eq for ComponentDomain
Source§impl Hash for ComponentDomain
impl Hash for ComponentDomain
Source§impl Ord for ComponentDomain
impl Ord for ComponentDomain
Source§fn cmp(&self, other: &ComponentDomain) -> Ordering
fn cmp(&self, other: &ComponentDomain) -> Ordering
1.21.0 (const: unstable) · 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for ComponentDomain
impl PartialEq for ComponentDomain
Source§impl PartialOrd for ComponentDomain
impl PartialOrd for ComponentDomain
impl StructuralPartialEq for ComponentDomain
Auto Trait Implementations§
impl Freeze for ComponentDomain
impl RefUnwindSafe for ComponentDomain
impl Send for ComponentDomain
impl Sync for ComponentDomain
impl Unpin for ComponentDomain
impl UnsafeUnpin for ComponentDomain
impl UnwindSafe for ComponentDomain
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