CpuTensor2

Type Alias CpuTensor2 

Source
pub type CpuTensor2<T> = Tensor2<T, CpuAllocator>;
Expand description

Type alias for a 2-dimensional tensor with CPU allocator.

Aliased Type§

pub struct CpuTensor2<T> {
    pub storage: TensorStorage<T, CpuAllocator>,
    pub shape: [usize; 2],
    pub strides: [usize; 2],
}

Fields§

§storage: TensorStorage<T, CpuAllocator>

The storage of the tensor.

§shape: [usize; 2]

The shape of the tensor.

§strides: [usize; 2]

The strides of the tensor data in memory.