pub enum TrainerMsg<P: ReplicaProtocol> {
Step {
batch: Vec<TrainSample>,
reply: Sender<Result<StepStats, GpuError>>,
},
SetReplicas {
replicas: Vec<ActorRef<P::Msg>>,
},
}Variants§
Step
SetReplicas
Set the replica refs after construction. Allows a late-binding pattern when replicas are spawned by another actor.
Auto Trait Implementations§
impl<P> Freeze for TrainerMsg<P>
impl<P> !RefUnwindSafe for TrainerMsg<P>
impl<P> Send for TrainerMsg<P>
impl<P> Sync for TrainerMsg<P>
impl<P> Unpin for TrainerMsg<P>
impl<P> UnsafeUnpin for TrainerMsg<P>
impl<P> !UnwindSafe for TrainerMsg<P>
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