书上的contrib.layers.batch_norm在2.9版本中没有了,加上compat.v1也不好用
from tensorflow.keras.layers import BatchNormalization
百度