Struct tensorflow::train::GradientDescentOptimizer
source · pub struct GradientDescentOptimizer { /* private fields */ }
Expand description
Optimizer that implements the gradient descent algorithm.
Implementations§
Trait Implementations§
source§impl Debug for GradientDescentOptimizer
impl Debug for GradientDescentOptimizer
source§impl Optimizer for GradientDescentOptimizer
impl Optimizer for GradientDescentOptimizer
source§fn apply_gradients(
&self,
scope: &mut Scope,
opts: ApplyGradientsOptions<'_>
) -> Result<(Vec<Variable>, Operation)>
fn apply_gradients( &self, scope: &mut Scope, opts: ApplyGradientsOptions<'_> ) -> Result<(Vec<Variable>, Operation)>
Applies the given gradients to the variables. Read more
source§fn compute_gradients(
&self,
scope: &mut Scope,
loss: Output,
opts: ComputeGradientsOptions<'_>
) -> Result<Vec<(Option<Output>, Variable)>>
fn compute_gradients( &self, scope: &mut Scope, loss: Output, opts: ComputeGradientsOptions<'_> ) -> Result<Vec<(Option<Output>, Variable)>>
Computes the gradient of a value with respect to the given variables.
This adds nodes to the graph, so reuse its results if possible.
Any variable whose gradient cannot be calculated will have a None gradient. Read more
Auto Trait Implementations§
impl RefUnwindSafe for GradientDescentOptimizer
impl Send for GradientDescentOptimizer
impl Sync for GradientDescentOptimizer
impl Unpin for GradientDescentOptimizer
impl UnwindSafe for GradientDescentOptimizer
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