Struct tensorflow::train::ApplyGradientsOptions
source · pub struct ApplyGradientsOptions<'a> { /* private fields */ }
Expand description
Options for Optimizer::apply_gradients
.
Implementations§
source§impl<'a> ApplyGradientsOptions<'a>
impl<'a> ApplyGradientsOptions<'a>
sourcepub fn with_grads_and_vars(
self,
grads_and_vars: &'a [(Option<Output>, Variable)]
) -> Self
pub fn with_grads_and_vars( self, grads_and_vars: &'a [(Option<Output>, Variable)] ) -> Self
Sets the variables which will be optimized and their associated gradients.
Trait Implementations§
source§impl<'a> Clone for ApplyGradientsOptions<'a>
impl<'a> Clone for ApplyGradientsOptions<'a>
source§fn clone(&self) -> ApplyGradientsOptions<'a>
fn clone(&self) -> ApplyGradientsOptions<'a>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'a> Debug for ApplyGradientsOptions<'a>
impl<'a> Debug for ApplyGradientsOptions<'a>
source§impl<'a> Default for ApplyGradientsOptions<'a>
impl<'a> Default for ApplyGradientsOptions<'a>
source§fn default() -> ApplyGradientsOptions<'a>
fn default() -> ApplyGradientsOptions<'a>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'a> RefUnwindSafe for ApplyGradientsOptions<'a>
impl<'a> Send for ApplyGradientsOptions<'a>
impl<'a> Sync for ApplyGradientsOptions<'a>
impl<'a> Unpin for ApplyGradientsOptions<'a>
impl<'a> UnwindSafe for ApplyGradientsOptions<'a>
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