Thanks for the help, the use case is a scientific program that I am working on.
BTW, I need to make an n-dimensional tensor so it has n subscript for example
T_ 00...001  is one of them, T_ 0....002 , T_ 0...010  and etc. Naively thinking about this problem is to use n layers of loops, for i in range(3): , but I thought maybe tf or torch can help with this. In the end, I will input some value for each of these T.