Struct tensorflow::train::AdadeltaOptimizer
source · pub struct AdadeltaOptimizer { /* private fields */ }
Expand description
Optimizer that implements the Adadelta algorithm.
See M. D. Zeiler.
Implementations§
source§impl AdadeltaOptimizer
impl AdadeltaOptimizer
sourcepub fn new() -> Self
pub fn new() -> Self
Creates a new optimizer with default parameters (learning_rate=0.001, rho=0.95, epsilon=1e-8).
sourcepub fn set_learning_rate<T: Into<Output>>(&mut self, learning_rate: T)
pub fn set_learning_rate<T: Into<Output>>(&mut self, learning_rate: T)
Sets the learning rate. Default is 0.001.
sourcepub fn set_epsilon<T: Into<Output>>(&mut self, epsilon: T)
pub fn set_epsilon<T: Into<Output>>(&mut self, epsilon: T)
Sets epsilon, the conditioning. Default is 1e-8.
Trait Implementations§
source§impl Debug for AdadeltaOptimizer
impl Debug for AdadeltaOptimizer
source§impl Default for AdadeltaOptimizer
impl Default for AdadeltaOptimizer
source§impl Optimizer for AdadeltaOptimizer
impl Optimizer for AdadeltaOptimizer
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 AdadeltaOptimizer
impl Send for AdadeltaOptimizer
impl Sync for AdadeltaOptimizer
impl Unpin for AdadeltaOptimizer
impl UnwindSafe for AdadeltaOptimizer
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