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§

source

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

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<'a, Dtype> ToEphemeralView<'a, Dtype> for TensorStorage<Dtype>