Trait math::tensor::ephemeral_view::ToEphemeralView
source · pub trait ToEphemeralView<'a, Dtype> {
// Required method
fn as_shape<S: Into<TensorShape>>(
&'a self,
shape: S
) -> EphemeralView<'a, Dtype>;
}
Expand description
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>
Object Safety§
This trait is not object safe.