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