Struct wyrm::HogwildParameter
[−]
[src]
pub struct HogwildParameter { pub value: RefCell<Arr>, pub squared_gradients: RefCell<Arr>, pub moments: RefCell<Arr>, // some fields omitted }
Struct used to hold parameters that need to be shared among
multiple ParameterNode
s for asynchronous, parallel optimization.
Fields
value: RefCell<Arr>
squared_gradients: RefCell<Arr>
moments: RefCell<Arr>
Methods
impl HogwildParameter
[src]
pub fn new(value: Arr) -> Self
[src]
Create a new parameter object.
pub fn value(&self) -> &Arr
[src]
pub fn squared_gradients(&self) -> &Arr
[src]
Trait Implementations
impl Sync for HogwildParameter
[src]
impl Clone for HogwildParameter
[src]
fn clone(&self) -> HogwildParameter
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more