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 Freeze for GradientDescentOptimizer
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