pub struct ConstructedRealtimeModel<A, B, M>where
B: SubmissionBackend<Executor = <<B as NeuralBackend>::Tensor as Tensor>::Context>,
M: RealtimeModelConstructionMechanisms<A, B>,
A: LayeredArchitecture<B, M::State>,{ /* private fields */ }Expand description
Fully constructed execution paired with its initial mutable model state.
Implementations§
Source§impl<A, B, M> ConstructedRealtimeModel<A, B, M>where
B: SubmissionBackend<Executor = <<B as NeuralBackend>::Tensor as Tensor>::Context>,
M: RealtimeModelConstructionMechanisms<A, B>,
A: LayeredArchitecture<B, M::State>,
impl<A, B, M> ConstructedRealtimeModel<A, B, M>where
B: SubmissionBackend<Executor = <<B as NeuralBackend>::Tensor as Tensor>::Context>,
M: RealtimeModelConstructionMechanisms<A, B>,
A: LayeredArchitecture<B, M::State>,
Sourcepub const fn selected(&self) -> &SelectedRealtimeRealization
pub const fn selected(&self) -> &SelectedRealtimeRealization
Returns the immutable selected realization.
Sourcepub const fn execution(
&self,
) -> &RealtimeLayerwiseRuntime<A, B, M::State, M::ResidentPolicy, M::BoundedPolicy>
pub const fn execution( &self, ) -> &RealtimeLayerwiseRuntime<A, B, M::State, M::ResidentPolicy, M::BoundedPolicy>
Returns the selected resident or bounded runtime.
Sourcepub fn execution_mut(
&mut self,
) -> &mut RealtimeLayerwiseRuntime<A, B, M::State, M::ResidentPolicy, M::BoundedPolicy>
pub fn execution_mut( &mut self, ) -> &mut RealtimeLayerwiseRuntime<A, B, M::State, M::ResidentPolicy, M::BoundedPolicy>
Mutably borrows the selected resident or bounded runtime.
Sourcepub fn execution_and_state_mut(
&mut self,
) -> (&mut RealtimeLayerwiseRuntime<A, B, M::State, M::ResidentPolicy, M::BoundedPolicy>, &mut M::State)
pub fn execution_and_state_mut( &mut self, ) -> (&mut RealtimeLayerwiseRuntime<A, B, M::State, M::ResidentPolicy, M::BoundedPolicy>, &mut M::State)
Mutably borrows execution and state together for one atomic model pass.
Sourcepub fn constructed_execution_and_state_mut(
&mut self,
) -> (&mut ConstructedRealtimeExecution<A, B, M>, &mut M::State)
pub fn constructed_execution_and_state_mut( &mut self, ) -> (&mut ConstructedRealtimeExecution<A, B, M>, &mut M::State)
Mutably borrows detached execution and state as separate typed values.
Sourcepub const fn mechanisms(&self) -> &M
pub const fn mechanisms(&self) -> &M
Returns generic construction mechanisms for reports or later composition.
Sourcepub fn mechanisms_mut(&mut self) -> &mut M
pub fn mechanisms_mut(&mut self) -> &mut M
Mutably borrows generic mechanisms.
Sourcepub fn into_execution_and_state(
self,
) -> (ConstructedRealtimeExecution<A, B, M>, M::State)
pub fn into_execution_and_state( self, ) -> (ConstructedRealtimeExecution<A, B, M>, M::State)
Consumes the combined model into static execution and mutable state.
Auto Trait Implementations§
impl<A, B, M> Freeze for ConstructedRealtimeModel<A, B, M>where
ConstructedRealtimeExecution<A, B, M>: Freeze,
<M as RealtimeModelConstructionMechanisms<A, B>>::State: Freeze,
impl<A, B, M> RefUnwindSafe for ConstructedRealtimeModel<A, B, M>where
ConstructedRealtimeExecution<A, B, M>: RefUnwindSafe,
<M as RealtimeModelConstructionMechanisms<A, B>>::State: RefUnwindSafe,
impl<A, B, M> Send for ConstructedRealtimeModel<A, B, M>where
ConstructedRealtimeExecution<A, B, M>: Send,
<M as RealtimeModelConstructionMechanisms<A, B>>::State: Send,
impl<A, B, M> Sync for ConstructedRealtimeModel<A, B, M>where
ConstructedRealtimeExecution<A, B, M>: Sync,
<M as RealtimeModelConstructionMechanisms<A, B>>::State: Sync,
impl<A, B, M> Unpin for ConstructedRealtimeModel<A, B, M>where
ConstructedRealtimeExecution<A, B, M>: Unpin,
<M as RealtimeModelConstructionMechanisms<A, B>>::State: Unpin,
impl<A, B, M> UnsafeUnpin for ConstructedRealtimeModel<A, B, M>where
ConstructedRealtimeExecution<A, B, M>: UnsafeUnpin,
<M as RealtimeModelConstructionMechanisms<A, B>>::State: UnsafeUnpin,
impl<A, B, M> UnwindSafe for ConstructedRealtimeModel<A, B, M>where
ConstructedRealtimeExecution<A, B, M>: UnwindSafe,
<M as RealtimeModelConstructionMechanisms<A, B>>::State: 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