pub enum AutodiffError {
WrongStage {
got: GraphStage,
hint: &'static str,
},
Lower(LowerError),
}Expand description
Error from grad_with_loss_module / jvp_module.
Variants§
WrongStage
Autodiff requires MIR (or HIR to lower first). LIR carries a buffer plan that does not apply to a freshly built gradient graph.
Lower(LowerError)
Trait Implementations§
Source§impl Clone for AutodiffError
impl Clone for AutodiffError
Source§fn clone(&self) -> AutodiffError
fn clone(&self) -> AutodiffError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AutodiffError
impl Debug for AutodiffError
Source§impl Display for AutodiffError
impl Display for AutodiffError
Source§impl Error for AutodiffError
impl Error for AutodiffError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for AutodiffError
impl PartialEq for AutodiffError
Source§fn eq(&self, other: &AutodiffError) -> bool
fn eq(&self, other: &AutodiffError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for AutodiffError
impl StructuralPartialEq for AutodiffError
Auto Trait Implementations§
impl Freeze for AutodiffError
impl RefUnwindSafe for AutodiffError
impl Send for AutodiffError
impl Sync for AutodiffError
impl Unpin for AutodiffError
impl UnsafeUnpin for AutodiffError
impl UnwindSafe for AutodiffError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more