TensorViewAPI

Trait TensorViewAPI 

Source
pub trait TensorViewAPI
where Self::Dim: DimAPI, Self::Backend: DeviceAPI<Self::Type>,
{ type Type; type Backend; type Dim; // Required method fn view(&self) -> TensorView<'_, Self::Type, Self::Backend, Self::Dim>; }

Required Associated Types§

Required Methods§

Source

fn view(&self) -> TensorView<'_, Self::Type, Self::Backend, Self::Dim>

Get a view of tensor.

Implementors§

Source§

impl<R, T, B, D> TensorViewAPI for &TensorAny<R, T, B, D>
where D: DimAPI, R: DataAPI<Data = B::Raw>, B: DeviceAPI<T>,

Source§

type Type = T

Source§

type Backend = B

Source§

type Dim = D

Source§

impl<R, T, B, D> TensorViewAPI for &mut TensorAny<R, T, B, D>
where D: DimAPI, R: DataAPI<Data = B::Raw>, B: DeviceAPI<T>,

Source§

type Type = T

Source§

type Backend = B

Source§

type Dim = D

Source§

impl<R, T, B, D> TensorViewAPI for TensorAny<R, T, B, D>
where D: DimAPI, R: DataAPI<Data = B::Raw>, B: DeviceAPI<T>,

Source§

type Type = T

Source§

type Backend = B

Source§

type Dim = D

Source§

impl<T, B, D> TensorViewAPI for TensorMutable<'_, T, B, D>
where D: DimAPI, B: DeviceAPI<T>,

Source§

type Type = T

Source§

type Backend = B

Source§

type Dim = D