pub enum DnnError {
Cuda(CudaError),
Blas(BlasError),
PtxGeneration(String),
InvalidDimension(String),
BufferTooSmall {
expected: usize,
actual: usize,
},
UnsupportedOperation(String),
InvalidArgument(String),
WorkspaceRequired(usize),
LaunchFailed(String),
Io(Error),
}Expand description
Errors that can arise during DNN operations.
Variants§
Cuda(CudaError)
A low-level CUDA driver call failed.
Blas(BlasError)
A BLAS operation failed (e.g. during convolution via im2col + GEMM).
PtxGeneration(String)
PTX kernel generation or compilation failed.
InvalidDimension(String)
Tensor dimensions are invalid (e.g. zero-sized, negative, or inconsistent with the expected layout).
BufferTooSmall
The supplied device buffer is too small for the described tensor.
Fields
UnsupportedOperation(String)
The requested operation is not supported for the given configuration (e.g. unsupported data type or algorithm on a particular SM version).
InvalidArgument(String)
A function argument failed validation.
WorkspaceRequired(usize)
The operation requires a workspace buffer of at least the given size, but none (or too small) was provided.
LaunchFailed(String)
A GPU kernel launch failed.
Io(Error)
An I/O error occurred (e.g. when reading/writing the PTX cache).
Trait Implementations§
Source§impl Error for DnnError
impl Error for DnnError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()