shape

property Tensor4.shape

As for numpy.ndarray