![](/img/trans.png)
[英]While converting char2num I am getting AttributeError: module 'tensorflow.python.keras.api._v1.keras.layers' has no attribute 'experimental'
[英]AttributeError: tensorflow_core.python.keras.api._v2.keras.layers.experimental' has no attribute 'SyncBatchNormalization'
我試圖運行 tensorflow Object 檢測 API 並且我遇到了錯誤
AttributeError: module 'tensorflow_core.python.keras.api._v2.keras.layers.experimental' has no attribute 'SyncBatchNormalization'
我該如何解決?
我的版本是:
keras 應用程序 1.0.8
keras-nightly 2.5.0.dev2021032900
keras 預處理 1.1.2
tensorflow 2.1.0
正確檢查 TensorFlow 文檔。 tf.keras.layers.experimental.SyncBatchNormalization
在最新的 TF 版本中可用,即v2.5.0
。
該層不包含在 TensorFlow 2.1.0 中。 使用更新您的 TensorFlow package
pip install tensorflow==2.5.0
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.