Yes of course. let’s take a small n = 2, then I can initialize my tensor with
 T = torch.ones(3,3)
and I can assign anything I want, as an example:
 For i in range(3):
For j in range(3):
T[i][j] = j*i
but if I want to put n = 3;
T = torch.ones(3,3,3)
and if I want to do something like what I did for n=2 I need 3 loops.
but what I really want to do is for n= 100 and it is basically impossible this way.
Thanks for spending time on this.