pub trait Optimizer<T: Num, D: Device, P: Parameters<T, D>> { // Required method fn update(&self, parameters: &P); }