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