#[non_exhaustive]pub enum LoaderError<E> {
Show 14 variants
Pipeline {
batch: Option<u64>,
worker: Option<usize>,
source: E,
},
StreamPipeline {
batch: Option<u64>,
worker: usize,
sequence: Option<u64>,
logical_id: Option<u64>,
source: E,
},
WorkerPanic {
worker: usize,
batch: Option<u64>,
},
StreamWorkerPanic {
worker: usize,
batch: Option<u64>,
sequence: Option<u64>,
logical_id: Option<u64>,
},
CoordinatorPanic {
stage: &'static str,
batch: Option<u64>,
},
Timeout {
batch: u64,
},
Cancelled,
ChannelClosed {
batch: u64,
},
InvalidBatchCardinality {
batch: u64,
worker: Option<usize>,
expected: usize,
actual: usize,
},
StreamProtocol {
sequence: Option<u64>,
reason: String,
},
MemoryLimit {
batch: Option<u64>,
worker: Option<usize>,
sequence: Option<u64>,
logical_id: Option<u64>,
limit: usize,
actual: usize,
},
PinMemory {
batch: u64,
source: RustTorchError,
},
Checkpoint {
reason: String,
},
Configuration(RustTorchError),
}Expand description
A typed failure produced while an owned data loader is active.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Pipeline
A dataset, transform, or collation stage failed.
Fields
source: EPreserved pipeline error.
StreamPipeline
An explicitly sharded stream stage failed.
Fields
source: EPreserved pipeline error.
WorkerPanic
A worker thread panicked.
StreamWorkerPanic
An explicitly sharded stream worker panicked.
Fields
CoordinatorPanic
Coordinator-owned user code panicked.
Fields
Timeout
Waiting for a batch exceeded the configured timeout.
Cancelled
Loading was cancelled.
ChannelClosed
A loader channel closed before the expected batch arrived.
InvalidBatchCardinality
Batched dataset fetch returned the wrong number of samples.
Fields
StreamProtocol
A streaming source violated its sequence protocol.
Fields
MemoryLimit
A sample or batch exceeded the configured byte budget.
Fields
PinMemory
Pinning a completed batch failed.
Checkpoint
Checkpoint state was unavailable, corrupt, or incompatible.
Configuration(RustTorchError)
Loader configuration is invalid or temporarily unsupported.
Trait Implementations§
Source§impl<E: Debug> Debug for LoaderError<E>
impl<E: Debug> Debug for LoaderError<E>
Source§impl<E> Display for LoaderError<E>where
E: Display,
impl<E> Display for LoaderError<E>where
E: Display,
Source§impl<E> Error for LoaderError<E>
impl<E> Error for LoaderError<E>
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()