Skip to main content

hstack

Function hstack 

Source
pub fn hstack<T>(tensors: &[Tensor<T>]) -> Result<Tensor<T>, FerrotorchError>
where T: Float,
Expand description

hstack(tensors) — stack tensors column-wise.

Mirrors upstream aten/src/ATen/native/TensorShape.cpp:3514 Tensor hstack(TensorList tensors): atleast_1d each input; if the (promoted) inputs are 1-D, cat(_, 0), otherwise cat(_, 1). Autograd inherited from cat.