ImportError:cannot import name ‘BatchNormalization‘ from ‘tensorflow.python.keras.layers‘

ImportError:cannot import name ‘BatchNormalization’ from ‘tensorflow.python.keras.layers’

ImportError:cannot import name ‘BatchNormalization’ from ‘tensorflow.python.keras.layers’


原因分析:

tensorflow 版本过高导致

解决方案:

pip3 install tensorflow==2.2.0

你可能感兴趣的:(tensorflow,python,keras)