pub trait TensorToArray<S: Shape, E>: Storage<E> {
    type Array: Debug + PartialEq;

    // Required method
    fn tensor_to_array<T>(&self, tensor: &Tensor<S, E, Self, T>) -> Self::Array;
}

Required Associated Types§

Required Methods§

source

fn tensor_to_array<T>(&self, tensor: &Tensor<S, E, Self, T>) -> Self::Array

Implementors§

source§

impl<E: Unit> TensorToArray<(), E> for Cpu

§

type Array = E

source§

impl<E: Unit, const M: usize> TensorToArray<(Const<M>,), E> for Cpu

source§

impl<E: Unit, const M: usize, const N: usize> TensorToArray<(Const<M>, Const<N>), E> for Cpu

§

type Array = [[E; N]; M]

source§

impl<E: Unit, const M: usize, const N: usize, const O: usize> TensorToArray<(Const<M>, Const<N>, Const<O>), E> for Cpu

§

type Array = [[[E; O]; N]; M]

source§

impl<E: Unit, const M: usize, const N: usize, const O: usize, const P: usize> TensorToArray<(Const<M>, Const<N>, Const<O>, Const<P>), E> for Cpu

§

type Array = [[[[E; P]; O]; N]; M]

source§

impl<S: Shape, E: Unit> TensorToArray<S, E> for Cudawhere Cpu: TensorToArray<S, E> + Storage<E>,

§

type Array = <Cpu as TensorToArray<S, E>>::Array