pub trait FallibleModule: Debug + Send {
type Error;
// Required method
fn forward(&self, input: &Tensor) -> Result<Tensor, Self::Error>;
}
Expand description
Module for which a computation can fail.
pub trait FallibleModule: Debug + Send {
type Error;
// Required method
fn forward(&self, input: &Tensor) -> Result<Tensor, Self::Error>;
}
Module for which a computation can fail.