Skip to main content

LayeredPartitionInput

Enum LayeredPartitionInput 

Source
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

§hidden: T

Evolving activation received from the preceding owner.

§auxiliary: A

Architecture-typed context carried across the partition boundary.

Trait Implementations§

Source§

impl<'a, T: Debug, A: Debug> Debug for LayeredPartitionInput<'a, T, A>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<'a, T, A> Freeze for LayeredPartitionInput<'a, T, A>
where &'a T: Freeze, T: Freeze, A: Freeze,

§

impl<'a, T, A> RefUnwindSafe for LayeredPartitionInput<'a, T, A>

§

impl<'a, T, A> Send for LayeredPartitionInput<'a, T, A>
where &'a T: Send, T: Send, A: Send,

§

impl<'a, T, A> Sync for LayeredPartitionInput<'a, T, A>
where &'a T: Sync, T: Sync, A: Sync,

§

impl<'a, T, A> Unpin for LayeredPartitionInput<'a, T, A>
where &'a T: Unpin, T: Unpin, A: Unpin,

§

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.