pub fn stack<T: Scalar>(tensors: &[Tensor<T>], dim: usize) -> Result<Tensor<T>>
Stacks tensors along a new dimension.
tensors
dim