pub enum LayeredPartitionInput<'a, T, A = NoAuxiliaryBoundary> {
Tokens(&'a T),
Hidden {
hidden: T,
auxiliary: A,
},
}Expand description
Input accepted at a rank-local layered partition boundary.
A partition either embeds borrowed token ids or consumes an owned hidden tensor prepared by architecture ingress or a preceding pipeline owner.
Variants§
Tokens(&'a T)
Token ids supplied to the architecture input owner.
Hidden
Architecture-prepared or upstream hidden state.
Fields
Evolving activation received from the preceding owner.
§
auxiliary: AArchitecture-typed context carried across the partition boundary.
Trait Implementations§
Auto Trait Implementations§
impl<'a, T, A> Freeze for LayeredPartitionInput<'a, T, A>
impl<'a, T, A> RefUnwindSafe for LayeredPartitionInput<'a, T, A>
impl<'a, T, A> Send for LayeredPartitionInput<'a, T, A>
impl<'a, T, A> Sync for LayeredPartitionInput<'a, T, A>
impl<'a, T, A> Unpin for LayeredPartitionInput<'a, T, A>
impl<'a, T, A> UnsafeUnpin for LayeredPartitionInput<'a, T, A>
impl<'a, T, A> UnwindSafe for LayeredPartitionInput<'a, T, A>
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