numpy.nditer.shape

attribute

nditer.shape