pub enum CpuTensorError {
ShapeMismatch {
expected: usize,
got: usize,
},
}Expand description
Errors CpuTensor::new_checked and from_proto may return.
Variants§
ShapeMismatch
The product of dims doesn’t match data.len(). Surfaces
from new_checked and the proto deserialization boundary.
Trait Implementations§
Source§impl Debug for CpuTensorError
impl Debug for CpuTensorError
Source§impl Display for CpuTensorError
impl Display for CpuTensorError
Source§impl Error for CpuTensorError
impl Error for CpuTensorError
1.30.0 · 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()
Auto Trait Implementations§
impl Freeze for CpuTensorError
impl RefUnwindSafe for CpuTensorError
impl Send for CpuTensorError
impl Sync for CpuTensorError
impl Unpin for CpuTensorError
impl UnsafeUnpin for CpuTensorError
impl UnwindSafe for CpuTensorError
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