Skip to main content

hermes_simd_core/tensor/
error.rs

1//! Error type for tensor construction and indexing.
2
3/// Error type for tensor construction and indexing.
4#[derive(Debug, Clone, Copy, PartialEq, Eq)]
5pub enum TensorError {
6    /// The element count derived from `shape` does not fit in `data.len()`.
7    ShapeMismatch,
8    /// A row or slice index is out of bounds.
9    IndexOutOfBounds,
10    /// The view is not contiguous and cannot be reshaped without copying.
11    NotContiguous,
12}