配列の形を変えたいときは reshape を使います注3。>>> torch.arange(6).reshape(2,3) tensor([[0, 1, 2], [3, 4, 5]]) >>> np.arange(6).reshape(2,3) # numpyの場合 ...
確定! 回上一頁