Trait Predict

Source
pub trait Predict<Rhs> {
    type Output;

    // Required method
    fn predict(&self, input: &Rhs) -> NeuralResult<Self::Output>;
}
Expand description

Predict isn’t designed to be implemented directly, rather, as a blanket impl for any entity that implements the Forward trait. This is primarily used to define the base functionality of the Model trait.

Required Associated Types§

Required Methods§

Source

fn predict(&self, input: &Rhs) -> NeuralResult<Self::Output>

Implementors§

Source§

impl<M, U, V> Predict<U> for M
where M: Forward<U, Output = V>,