#[non_exhaustive]pub enum PreparedInputPayload<Tensor> {
TokenIds(Tensor),
Tensor(Tensor),
Embeddings(Tensor),
}Expand description
Primary tensor and its semantic role for one prepared input part.
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(Tensor)
Tokenizer vocabulary IDs.
Tensor(Tensor)
Model-native features or patches that still require an encoder.
Embeddings(Tensor)
Already projected decoder-width embeddings.
Implementations§
Source§impl<Tensor> PreparedInputPayload<Tensor>
impl<Tensor> PreparedInputPayload<Tensor>
Trait Implementations§
Source§impl<Tensor: Clone> Clone for PreparedInputPayload<Tensor>
impl<Tensor: Clone> Clone for PreparedInputPayload<Tensor>
Source§fn clone(&self) -> PreparedInputPayload<Tensor>
fn clone(&self) -> PreparedInputPayload<Tensor>
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 moreSource§impl<Tensor: Debug> Debug for PreparedInputPayload<Tensor>
impl<Tensor: Debug> Debug for PreparedInputPayload<Tensor>
impl<Tensor: Eq> Eq for PreparedInputPayload<Tensor>
Source§impl<Tensor: PartialEq> PartialEq for PreparedInputPayload<Tensor>
impl<Tensor: PartialEq> PartialEq for PreparedInputPayload<Tensor>
impl<Tensor: PartialEq> StructuralPartialEq for PreparedInputPayload<Tensor>
Auto Trait Implementations§
impl<Tensor> Freeze for PreparedInputPayload<Tensor>where
Tensor: Freeze,
impl<Tensor> RefUnwindSafe for PreparedInputPayload<Tensor>where
Tensor: RefUnwindSafe,
impl<Tensor> Send for PreparedInputPayload<Tensor>where
Tensor: Send,
impl<Tensor> Sync for PreparedInputPayload<Tensor>where
Tensor: Sync,
impl<Tensor> Unpin for PreparedInputPayload<Tensor>where
Tensor: Unpin,
impl<Tensor> UnsafeUnpin for PreparedInputPayload<Tensor>where
Tensor: UnsafeUnpin,
impl<Tensor> UnwindSafe for PreparedInputPayload<Tensor>where
Tensor: UnwindSafe,
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