Trait syntaxdot_transformers::module::FallibleModule
source · 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.