pub trait ModelBase {
    fn backward_step(&mut self, loss: &Tensor);
fn get_var_store_mut(&mut self) -> &mut VarStore;
fn get_var_store(&self) -> &VarStore;
fn save<T: AsRef<Path>>(&self, path: T) -> Result<()>;
fn load<T: AsRef<Path>>(&mut self, path: T) -> Result<()>; }
Expand description

Base interface.

Required methods

Trains the network given a loss.

Returns var_store as mutable reference.

Returns var_store.

Save parameters of the neural network.

Load parameters of the neural network.

Implementors