pub trait FallibleModule: Debug + Send {
    type Error;

    fn forward(&self, input: &Tensor) -> Result<Tensor, Self::Error>;
}
Expand description

Module for which a computation can fail.

Required Associated Types§

The error type.

Required Methods§

Apply the module.

Implementors§