pub trait TensorAccess {
    fn dtype(&self) -> NumberType;
    fn ndim(&self) -> usize;
    fn shape(&self) -> &Shape;
    fn size(&self) -> u64;
}
Expand description

Basic properties common to all Tensors

Required Methods

The datatype of this Tensor

The number of dimensions of this Tensor

The shape of this Tensor

The number of elements in this Tensor

Implementors