tensorly.shape

shape(tensor)

Return the shape of a tensor