The list contain single element with the array values. list is [array([[ 4, 5, 6], [10, 11, 12]])]. I need average of each value of tensors. For example here there are 2 tensor with 3 values so i need 3 values([7 8 9] in this case) with average of it. Find below code for reference.
import numpy
a=np.arange(1,13).reshape(2,2,3)
pt=[np.array([0,1]),np.array([1,1])]
list=[]
list.append(a[pt[0],pt[1]])