logo

Trait neuronika::Eval[][src]

pub trait Eval {
    fn train(&self);
fn eval(&self); }
Expand description

Eval mode behavior.

This trait is implemented by all the variables and all the components that admit multiple behaviors during training and evaluation.

It provides two methods, namely .train() and .eval(), that are used respectively to set the entity in training mode and in evaluation mode.

Required methods

Sets self in training mode.

Sets self in evaluation mode.

Implementors