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