#[non_exhaustive]pub enum InputPayloadKind {
TokenIds,
Tensor,
Embeddings,
}Expand description
Semantic role of a prepared part’s primary tensor.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
TokenIds
Tokenizer vocabulary IDs.
Tensor
Model-native media features or patches that still require an encoder.
Embeddings
Already projected decoder-width embeddings.
Implementations§
Source§impl InputPayloadKind
impl InputPayloadKind
Sourcepub const fn accepts(self, modality: InputModality) -> bool
pub const fn accepts(self, modality: InputModality) -> bool
Returns whether this payload role is meaningful for modality.
Trait Implementations§
Source§impl Clone for InputPayloadKind
impl Clone for InputPayloadKind
Source§fn clone(&self) -> InputPayloadKind
fn clone(&self) -> InputPayloadKind
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 InputPayloadKind
Source§impl Debug for InputPayloadKind
impl Debug for InputPayloadKind
Source§impl<'de> Deserialize<'de> for InputPayloadKind
impl<'de> Deserialize<'de> for InputPayloadKind
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
impl Eq for InputPayloadKind
Source§impl Hash for InputPayloadKind
impl Hash for InputPayloadKind
Source§impl PartialEq for InputPayloadKind
impl PartialEq for InputPayloadKind
Source§impl Serialize for InputPayloadKind
impl Serialize for InputPayloadKind
impl StructuralPartialEq for InputPayloadKind
Auto Trait Implementations§
impl Freeze for InputPayloadKind
impl RefUnwindSafe for InputPayloadKind
impl Send for InputPayloadKind
impl Sync for InputPayloadKind
impl Unpin for InputPayloadKind
impl UnsafeUnpin for InputPayloadKind
impl UnwindSafe for InputPayloadKind
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