pub enum BurnDecodeError {
Infrastructure(BatchInfrastructureError),
UnsupportedDType {
dtype: DType,
},
SampleTypeMismatch,
SizeOverflow,
UnsupportedCodecContract,
Cuda(CudaBatchError),
Metal(Error),
AcceleratorInterop {
backend: &'static str,
message: String,
},
}Expand description
Failure while decoding or staging a codec batch into Burn.
Variants§
Infrastructure(BatchInfrastructureError)
The codec could not allocate or schedule the requested batch.
UnsupportedDType
The selected Burn backend cannot represent the codec’s exact integer type.
SampleTypeMismatch
Codec group metadata and the returned native sample owner disagreed.
SizeOverflow
Tensor shape arithmetic overflowed the host index type.
UnsupportedCodecContract
A newer codec contract cannot be represented by this adapter version.
Cuda(CudaBatchError)
CUDA rejected or could not complete one homogeneous codec group.
Metal(Error)
Metal rejected or could not complete one homogeneous codec group.
AcceleratorInterop
A framework allocation, readback, or upload boundary failed.
Trait Implementations§
Source§impl Debug for BurnDecodeError
impl Debug for BurnDecodeError
Source§impl Display for BurnDecodeError
impl Display for BurnDecodeError
Source§impl Error for BurnDecodeError
impl Error for BurnDecodeError
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<BatchInfrastructureError> for BurnDecodeError
impl From<BatchInfrastructureError> for BurnDecodeError
Source§fn from(source: BatchInfrastructureError) -> Self
fn from(source: BatchInfrastructureError) -> Self
Converts to this type from the input type.
Source§impl From<CudaBatchError> for BurnDecodeError
impl From<CudaBatchError> for BurnDecodeError
Source§fn from(source: CudaBatchError) -> Self
fn from(source: CudaBatchError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for BurnDecodeError
impl !UnwindSafe for BurnDecodeError
impl Freeze for BurnDecodeError
impl Send for BurnDecodeError
impl Sync for BurnDecodeError
impl Unpin for BurnDecodeError
impl UnsafeUnpin for BurnDecodeError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more