[][src]Trait melange::tensor::shape::Shape

pub unsafe trait Shape {
    const LEN: usize;

    fn runtime_compat(shape: &[usize]) -> bool;
}

Marker trait implemented on typenum's TArr containing a collection of type-level unsigned integers or Dyn. Provides the LEN constant that stores the number of axes in the shape and a runtime_compat function.

Associated Constants

const LEN: usize

Number of axes in the shape, i.e. order of the tensor.

Loading content...

Required methods

fn runtime_compat(shape: &[usize]) -> bool

Checks the given slice shape against the type-level shape for compatibility.

Loading content...

Implementations on Foreign Types

impl Shape for ATerm[src]

impl<D, A> Shape for TArr<D, A> where
    A: Shape,
    D: Dim
[src]

Loading content...

Implementors

Loading content...