Function tch::nn::sgd[][src]

pub fn sgd(momentum: f64, dampening: f64, wd: f64, nesterov: bool) -> Sgd

Creates the configuration for a Stochastic Gradient Descent (SGD) optimizer.