1. 세로로 긴 2차원 행렬 positions_list = torch.arange(0, max_len, dtype=torch.float).view(-1, 1) # 0, 1, 2, 3, 4, 5 tensor([[0.], [1.], [2.], [3.], [4.], [5.]]) 2. step 간격의 배열import torchdim_model = 6positions_list = torch.arange(0, dim_model, 2)print(positions_list) resulttensor([0, 2, 4])