pub enum AutogradError {
InplaceCompError {
op: &'static str,
location: &'static Location<'static>,
},
UnsupportOpError {
op: &'static str,
location: &'static Location<'static>,
},
}Expand description
Errors related to autograd
Variants§
InplaceCompError
Error that occurs when inplace computation is not allowed in autograd
Fields
UnsupportOpError
Error that occurs when the operation is not supported in autograd
Trait Implementations§
Source§impl Debug for AutogradError
impl Debug for AutogradError
Source§impl Display for AutogradError
impl Display for AutogradError
Source§impl Error for AutogradError
impl Error for AutogradError
1.30.0 · 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 From<AutogradError> for TensorError
impl From<AutogradError> for TensorError
Source§fn from(source: AutogradError) -> Self
fn from(source: AutogradError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for AutogradError
impl RefUnwindSafe for AutogradError
impl Send for AutogradError
impl Sync for AutogradError
impl Unpin for AutogradError
impl UnwindSafe for AutogradError
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