torch.
stack
Concatenates a sequence of tensors along a new dimension.
All tensors need to be of the same size.
tensors (sequence of Tensors) – sequence of tensors to concatenate
dim (int) – dimension to insert. Has to be between 0 and the number of dimensions of concatenated tensors (inclusive)
out (Tensor, optional) – the output tensor.
此页内容是否对您有帮助
感谢反馈!