I would like to define n-th order tensor X in Julia.
When n is small, we can define i[1]×i[2]×…×[n] tensor as
X = rand(i[1],i[2],i[3])