TensorCollectExt

Trait TensorCollectExt 

Source
pub trait TensorCollectExt: Iterator<Item = Tensor> + Sized {
    // Required method
    fn collect_shape(self, dims: Vec<usize>) -> Tensor;
}
Expand description

Extension trait to collect iterator of tensors into provided shape.

Required Methods§

Source

fn collect_shape(self, dims: Vec<usize>) -> Tensor

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<I> TensorCollectExt for I
where I: Iterator<Item = Tensor> + Sized,