Enum safetensors::slice::InvalidSlice
source · pub enum InvalidSlice {
TooManySlices,
SliceOutOfRange {
dim_index: usize,
asked: usize,
dim_size: usize,
},
}
Expand description
Error representing invalid slicing attempt
Variants§
TooManySlices
When the client asked for more slices than the tensors has dimensions
SliceOutOfRange
When the client asked for a slice that exceeds the allowed bounds
Trait Implementations§
Auto Trait Implementations§
impl Freeze for InvalidSlice
impl RefUnwindSafe for InvalidSlice
impl Send for InvalidSlice
impl Sync for InvalidSlice
impl Unpin for InvalidSlice
impl UnwindSafe for InvalidSlice
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