[][src]Trait math::tensor::ToView

pub trait ToView<'a, Dtype> {
    pub fn as_shape<S: Into<TensorShape>>(
        &'a self,
        shape: S
    ) -> EphemeralView<'a, Dtype>; }

The implementer can be viewed as a tensor of shape through the as_shape method. The resulting EphemeralView cannot outlive the original data struct.

Required methods

pub fn as_shape<S: Into<TensorShape>>(
    &'a self,
    shape: S
) -> EphemeralView<'a, Dtype>
[src]

Loading content...

Implementations on Foreign Types

impl<'a, Dtype> ToView<'a, Dtype> for Vec<Dtype>[src]

Loading content...

Implementors

impl<'a, Dtype> ToView<'a, Dtype> for Tensor<Dtype>[src]

Loading content...