AttributeError:tensorflow_core.python.keras.api._v2.keras.layers.experimental';没有属性';SyncBatchNormalization';

AttributeError:tensorflow_core.python.keras.api._v2.keras.layers.experimental';没有属性';SyncBatchNormalization';,python,tensorflow,keras,deep-learning,Python,Tensorflow,Keras,Deep Learning,我试图运行一个tensorflow对象检测API,但我遇到了错误 AttributeError: module 'tensorflow_core.python.keras.api._v2.keras.layers.experimental' has no attribute 'SyncBatchNormalization' 我该如何解决这个问题 我的版本是: keras应用1.0.8 keras夜间2.5.0.dev2021032900 keras预处理1.1.2 tensorflow 2.1

我试图运行一个tensorflow对象检测API,但我遇到了错误

AttributeError: module 'tensorflow_core.python.keras.api._v2.keras.layers.experimental' has no attribute 'SyncBatchNormalization'
我该如何解决这个问题

我的版本是:
keras应用1.0.8
keras夜间2.5.0.dev2021032900
keras预处理1.1.2

tensorflow 2.1.0检查tensorflow文档是否正确。在最新的TF版本中可用,即
v2.5.0

该层不包括在TensorFlow 2.1.0中。使用更新TensorFlow包

pip install tensorflow==2.5.0

共享您试图运行的代码会很有帮助,否则我们将无能为力