Struct tensorflow::ops::ApplyMomentum
source · pub struct ApplyMomentum { /* private fields */ }
Expand description
Builder for the ApplyMomentum
operation.
Implementations§
source§impl ApplyMomentum
impl ApplyMomentum
sourcepub fn use_locking<ArgType: Into<bool>>(self, value: ArgType) -> Self
pub fn use_locking<ArgType: Into<bool>>(self, value: ArgType) -> Self
Sets the use_locking
attribute.
sourcepub fn use_nesterov<ArgType: Into<bool>>(self, value: ArgType) -> Self
pub fn use_nesterov<ArgType: Into<bool>>(self, value: ArgType) -> Self
Sets the use_nesterov
attribute.
sourcepub fn add_control_input(self, op: Operation) -> Self
pub fn add_control_input(self, op: Operation) -> Self
Adds a control input.
sourcepub fn build<O0: Into<Output>, O1: Into<Output>, O2: Into<Output>, O3: Into<Output>, O4: Into<Output>>(
&self,
var: O0,
accum: O1,
lr: O2,
grad: O3,
momentum: O4,
scope: &mut Scope
) -> Result<Operation>
pub fn build<O0: Into<Output>, O1: Into<Output>, O2: Into<Output>, O3: Into<Output>, O4: Into<Output>>( &self, var: O0, accum: O1, lr: O2, grad: O3, momentum: O4, scope: &mut Scope ) -> Result<Operation>
Builds the ApplyMomentum
operation.
sourcepub fn build_instance(
&self,
var: Output,
accum: Output,
lr: Output,
grad: Output,
momentum: Output,
scope: &mut Scope
) -> Result<ApplyMomentumInst>
pub fn build_instance( &self, var: Output, accum: Output, lr: Output, grad: Output, momentum: Output, scope: &mut Scope ) -> Result<ApplyMomentumInst>
Builds a new instance of ‘ApplyMomentum’ Operation with it’s Outputs and Inputs exposed as methods.
Trait Implementations§
source§impl Debug for ApplyMomentum
impl Debug for ApplyMomentum
source§impl Default for ApplyMomentum
impl Default for ApplyMomentum
source§fn default() -> ApplyMomentum
fn default() -> ApplyMomentum
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for ApplyMomentum
impl Send for ApplyMomentum
impl Sync for ApplyMomentum
impl Unpin for ApplyMomentum
impl UnwindSafe for ApplyMomentum
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