Skip to main content

PartitionedTextRuntime

Struct PartitionedTextRuntime 

Source
pub struct PartitionedTextRuntime<A, B, S, P, E, G, R, I, T, U, V>{ /* private fields */ }
Expand description

Complete rank-local runtime installed behind the shared replicated session.

Implementations§

Source§

impl<A, B, S, P, E, G, R, I, T, U, V> PartitionedTextRuntime<A, B, S, P, E, G, R, I, T, U, V>

Source

pub fn new( plan: PartitionedExecutionPlan, executor: E, communication: PartitionCommunication<B, G, R, I>, communication_executor: B::OwnedExecutor, boundary_transport: T, output_publisher: U, commit_agreement: V, residency: ExecutionResidency, bounded_policy: Option<P>, ) -> Result<Self, PartitionExecutionError>

Pairs one immutable plan with its rank-local executable and opaque resources.

Source§

impl<A, B, S, P, ExecutionPolicy, G, R, I, T, U, V> PartitionedTextRuntime<A, B, S, P, LayerwiseTraversalPartitionExecutor<A, B, S, ExecutionPolicy>, G, R, I, T, U, V>

Source

pub fn forward_with_traversal_hook<'a, H>( &mut self, input: A::Input<'a>, state: &mut S, context: &<B::Tensor as Tensor>::Context, hook: &mut H, ) -> PartitionedTraversalResult<B::Tensor, A::ForwardContext, A::Error, ExecutionPolicy::Error>

Runs one architecture-owned traversal through the selected neutral partitioned base.

Every architecture group must be local. Point-to-point routes, output publication, and phase agreement use the ordinary partitioned session entry instead and are rejected here rather than silently bypassed.

Source

pub const fn traversal_executor( &self, ) -> &LayerwiseTraversalPartitionExecutor<A, B, S, ExecutionPolicy>

Borrows the installed traversal executor for neutral residency reports.

Auto Trait Implementations§

§

impl<A, B, S, P, E, G, R, I, T, U, V> Freeze for PartitionedTextRuntime<A, B, S, P, E, G, R, I, T, U, V>

§

impl<A, B, S, P, E, G, R, I, T, U, V> RefUnwindSafe for PartitionedTextRuntime<A, B, S, P, E, G, R, I, T, U, V>

§

impl<A, B, S, P, E, G, R, I, T, U, V> Send for PartitionedTextRuntime<A, B, S, P, E, G, R, I, T, U, V>
where E: Send, PartitionCommunication<B, G, R, I>: Send, <B as SubmissionBackend>::OwnedExecutor: Send, T: Send, U: Send, V: Send, Option<P>: Send, PhantomData<fn(A, S)>: Send,

§

impl<A, B, S, P, E, G, R, I, T, U, V> Sync for PartitionedTextRuntime<A, B, S, P, E, G, R, I, T, U, V>
where E: Sync, PartitionCommunication<B, G, R, I>: Sync, <B as SubmissionBackend>::OwnedExecutor: Sync, T: Sync, U: Sync, V: Sync, Option<P>: Sync, PhantomData<fn(A, S)>: Sync,

§

impl<A, B, S, P, E, G, R, I, T, U, V> Unpin for PartitionedTextRuntime<A, B, S, P, E, G, R, I, T, U, V>

§

impl<A, B, S, P, E, G, R, I, T, U, V> UnsafeUnpin for PartitionedTextRuntime<A, B, S, P, E, G, R, I, T, U, V>

§

impl<A, B, S, P, E, G, R, I, T, U, V> UnwindSafe for PartitionedTextRuntime<A, B, S, P, E, G, R, I, T, U, V>

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, !>

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.