torch.stack¶
- torch.stack(tensors, dim=0, *, out=None) Tensor ¶
Concatenates a sequence of tensors along a new dimension.
All tensors need to be of the same size.
See also
torch.cat()
concatenates the given sequence along an existing dimension.
Concatenates a sequence of tensors along a new dimension.
All tensors need to be of the same size.
See also
torch.cat()
concatenates the given sequence along an existing dimension.