FromNestedArrayAPI

Trait FromNestedArrayAPI 

Source
pub trait FromNestedArrayAPI<Arr, B> {
    // Required method
    fn from_nested_array(arr: Arr, device: &B) -> Self;
}

Required Methods§

Source

fn from_nested_array(arr: Arr, device: &B) -> Self

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<T, B, const N1: usize> FromNestedArrayAPI<[T; N1], B> for Tensor<T, B, Ix1>
where T: Clone, B: DeviceAPI<T> + DeviceCreationAnyAPI<T>,

Source§

impl<T, B, const N1: usize, const N2: usize> FromNestedArrayAPI<[[T; N2]; N1], B> for Tensor<T, B, Ix2>
where T: Clone, B: DeviceAPI<T> + DeviceCreationAnyAPI<T>,

Source§

impl<T, B, const N1: usize, const N2: usize, const N3: usize> FromNestedArrayAPI<[[[T; N3]; N2]; N1], B> for Tensor<T, B, Ix3>
where T: Clone, B: DeviceAPI<T> + DeviceCreationAnyAPI<T>,

Source§

impl<T, B, const N1: usize, const N2: usize, const N3: usize, const N4: usize> FromNestedArrayAPI<[[[[T; N4]; N3]; N2]; N1], B> for Tensor<T, B, Ix4>
where T: Clone, B: DeviceAPI<T> + DeviceCreationAnyAPI<T>,

Source§

impl<T, B, const N1: usize, const N2: usize, const N3: usize, const N4: usize, const N5: usize> FromNestedArrayAPI<[[[[[T; N5]; N4]; N3]; N2]; N1], B> for Tensor<T, B, Ix5>
where T: Clone, B: DeviceAPI<T> + DeviceCreationAnyAPI<T>,

Source§

impl<T, B, const N1: usize, const N2: usize, const N3: usize, const N4: usize, const N5: usize, const N6: usize> FromNestedArrayAPI<[[[[[[T; N6]; N5]; N4]; N3]; N2]; N1], B> for Tensor<T, B, Ix6>
where T: Clone, B: DeviceAPI<T> + DeviceCreationAnyAPI<T>,