import torch
one_d = torch.arange(2, 7)
one_d
one_d = torch.arange(2, 7, 2)
one_d
one_d = torch.arange(0, 9)
one_d
two_d = one_d.view(3, 3)
two_d
two_d.dim() # the number of dimentions
two_d[0, 2]
two_d[2, 2]
x = torch.arange(18).view(2, 3, 3)
x
x = torch.arange(18).view(3, 3, 2)
x