tensor.expand() >>> import torch >>> a = torch.tensor([[1],[2],[3]]) >>> print(a.size()) torch.Size([3, 1]) >>> a.expand(3,4) tensor([[1, 1, ...
確定! 回上一頁