pub trait FallibleModuleT: Debug + Send {
    type Error;

    fn forward_t(
        &self,
        input: &Tensor,
        train: bool
    ) -> 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§