[−][src]Trait math::tensor::ToView
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
fn as_shape<S: Into<TensorShape>>(
&'a self,
shape: S
) -> EphemeralView<'a, Dtype>
&'a self,
shape: S
) -> EphemeralView<'a, Dtype>
Implementations on Foreign Types
impl<'a, Dtype> ToView<'a, Dtype> for Vec<Dtype>
[src]
fn as_shape<S: Into<TensorShape>>(
&'a self,
shape: S
) -> EphemeralView<'a, Dtype>
[src]
&'a self,
shape: S
) -> EphemeralView<'a, Dtype>
Implementors
impl<'a, Dtype> ToView<'a, Dtype> for Tensor<Dtype>
[src]
fn as_shape<S: Into<TensorShape>>(
&'a self,
shape: S
) -> EphemeralView<'a, Dtype>
[src]
&'a self,
shape: S
) -> EphemeralView<'a, Dtype>