Enum dfdx::optim::OptimizerUpdateError
source · pub enum OptimizerUpdateError<Err> {
UnusedParams(UnusedTensors),
DeviceError(Err),
}
Expand description
An error indicating that a parameter was not used in gradient computation, and was therefore not present in Gradients during an update.
Variants§
UnusedParams(UnusedTensors)
DeviceError(Err)
Trait Implementations§
source§impl<Err: Debug> Debug for OptimizerUpdateError<Err>
impl<Err: Debug> Debug for OptimizerUpdateError<Err>
source§impl<Err: Display> Display for OptimizerUpdateError<Err>
impl<Err: Display> Display for OptimizerUpdateError<Err>
source§impl<Err: Debug + Display> Error for OptimizerUpdateError<Err>
impl<Err: Debug + Display> Error for OptimizerUpdateError<Err>
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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()
Auto Trait Implementations§
impl<Err> RefUnwindSafe for OptimizerUpdateError<Err>where Err: RefUnwindSafe,
impl<Err> Send for OptimizerUpdateError<Err>where Err: Send,
impl<Err> Sync for OptimizerUpdateError<Err>where Err: Sync,
impl<Err> Unpin for OptimizerUpdateError<Err>where Err: Unpin,
impl<Err> UnwindSafe for OptimizerUpdateError<Err>where Err: UnwindSafe,
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