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