Enum burn_tensor::DataError
source · pub enum DataError {
CastError(CheckedCastError),
TypeMismatch(String),
}
Expand description
The things that can go wrong when manipulating tensor data.
Variants§
CastError(CheckedCastError)
Failed to cast the values to a specified element type.
TypeMismatch(String)
Invalid target element type.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DataError
impl RefUnwindSafe for DataError
impl Send for DataError
impl Sync for DataError
impl Unpin for DataError
impl UnwindSafe for DataError
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