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