pub enum TensorError {
InvalidBuffer {
buffer_size: usize,
shape: Vec<usize>,
},
}
Expand description
Error linked to the tensor creation
Variants§
InvalidBuffer
The arguments to the tensor creation are invalid, the shape doesn’t match the size of the buffer.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TensorError
impl RefUnwindSafe for TensorError
impl Send for TensorError
impl Sync for TensorError
impl Unpin for TensorError
impl UnwindSafe for TensorError
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