NumPy is the fundamental package for scientific computing with Python. It contains among other things: a powerful N-dimensional array object; import numpy as np T = np.array([ [[1,2,3], [4,5,6], [7,8,9]], [[11,12,13], [14,15,16], [17,18,19]], [[21,22,23], [24,25,26], [27,28,29]], ]) print(T.shape) # (3,3,3) print(T.ndim) # 3 print(T.size) # 27 print(T) Each … [Read more...] about Tensor in NumPy and what may be useful to know about tensor shapes