pub struct Trainer {
pub scratch: Scratch,
pub grads: Gradients,
}Expand description
Reusable buffers for training a specific Mlp.
This is the ergonomic wrapper around Scratch + Gradients.
Fields§
§scratch: Scratch§grads: GradientsImplementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Trainer
impl RefUnwindSafe for Trainer
impl Send for Trainer
impl Sync for Trainer
impl Unpin for Trainer
impl UnwindSafe for Trainer
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