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§
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.