pub enum ParameterServerMsg {
PushGradient {
worker: WorkerId,
worker_version: u64,
gradient: Vec<f32>,
reply: Sender<Result<u64, GpuError>>,
},
PullWeights {
worker: WorkerId,
reply: Sender<(Vec<f32>, u64)>,
},
Stats {
reply: Sender<ParameterServerStats>,
},
}Variants§
PushGradient
Worker pushes a gradient vector. worker_version is the
version the worker had when it computed this gradient.
PullWeights
Worker pulls the latest weights + version.
Stats
Fields
§
reply: Sender<ParameterServerStats>Auto Trait Implementations§
impl Freeze for ParameterServerMsg
impl !RefUnwindSafe for ParameterServerMsg
impl Send for ParameterServerMsg
impl Sync for ParameterServerMsg
impl Unpin for ParameterServerMsg
impl UnsafeUnpin for ParameterServerMsg
impl !UnwindSafe for ParameterServerMsg
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