Struct tensorflow::train::ComputeGradientsOptions
source · pub struct ComputeGradientsOptions<'a> { /* private fields */ }
Expand description
Options for Optimizer::compute_gradients
.
Implementations§
source§impl<'a> ComputeGradientsOptions<'a>
impl<'a> ComputeGradientsOptions<'a>
sourcepub fn with_variables(self, variables: &'a [Variable]) -> Self
pub fn with_variables(self, variables: &'a [Variable]) -> Self
Sets the variables whose gradients need to be computed.
Trait Implementations§
source§impl<'a> Clone for ComputeGradientsOptions<'a>
impl<'a> Clone for ComputeGradientsOptions<'a>
source§fn clone(&self) -> ComputeGradientsOptions<'a>
fn clone(&self) -> ComputeGradientsOptions<'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 ComputeGradientsOptions<'a>
impl<'a> Debug for ComputeGradientsOptions<'a>
source§impl<'a> Default for ComputeGradientsOptions<'a>
impl<'a> Default for ComputeGradientsOptions<'a>
source§fn default() -> ComputeGradientsOptions<'a>
fn default() -> ComputeGradientsOptions<'a>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'a> RefUnwindSafe for ComputeGradientsOptions<'a>
impl<'a> Send for ComputeGradientsOptions<'a>
impl<'a> Sync for ComputeGradientsOptions<'a>
impl<'a> Unpin for ComputeGradientsOptions<'a>
impl<'a> UnwindSafe for ComputeGradientsOptions<'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