This is done with the unsqueeze method in PyTorch: c = tensor([10.,20,30]) m = tensor([[1., 2, 3], [4,5,6], [7,8,9]]) c = c.unsqueeze(1) m.shape,c.shape ...
確定! 回上一頁