pub enum RlError {
Cuda(CudaError),
ZeroCapacity,
InsufficientTransitions {
have: usize,
need: usize,
},
DimensionMismatch {
expected: usize,
got: usize,
},
InvalidHyperparameter {
name: String,
msg: String,
},
InvalidDistribution {
sum: f32,
tol: f32,
},
EmptyDistribution,
NStepIncomplete {
have: usize,
need: usize,
},
ZeroPrioritySum,
NotSupported(String),
Internal(String),
}Expand description
All errors produced by the OxiCUDA RL library.
Variants§
Cuda(CudaError)
Underlying CUDA driver error.
ZeroCapacity
Replay buffer has zero capacity.
InsufficientTransitions
Replay buffer does not yet contain enough transitions to sample.
DimensionMismatch
Dimension mismatch between observation, action, or reward tensors.
InvalidHyperparameter
Invalid hyperparameter value.
InvalidDistribution
Policy returned a probability vector that does not sum to 1 within tolerance.
EmptyDistribution
Attempt to sample from an empty categorical distribution.
NStepIncomplete
N-step buffer flush requested before enough steps were collected.
ZeroPrioritySum
Priority sum in segment tree dropped to zero (all priorities are zero).
NotSupported(String)
Feature not yet implemented.
Internal(String)
Internal logic error — should never surface in correct code.
Trait Implementations§
Source§impl Error for RlError
impl Error for RlError
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()
Auto Trait Implementations§
impl Freeze for RlError
impl RefUnwindSafe for RlError
impl Send for RlError
impl Sync for RlError
impl Unpin for RlError
impl UnsafeUnpin for RlError
impl UnwindSafe for RlError
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