hermes-simd-core 0.6.0

High-performance, zero-overhead SIMD abstraction library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
//! Error type for tensor construction and indexing.

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