模块'keras.api._v2.keras.Experial'没有属性'PeepholeLSTMCell'模块、属性、amp、api

2023-09-03 08:10:07 作者:-要走别回头。

我尝试在Google CoLab中安装TensorFlow_Federated。我使用了

pip install --quiet tensorflow-federated-nightly
import tensorflow-federated as tff

而且奏效了。但现在,当我尝试导入它时,收到以下错误:

AttributeError: module 'keras.api._v2.keras.experimental' has no attribute 'PeepholeLSTMCell'
Docker ,Kubernetes,Apache Mesos的区别与联系

我不知道为什么会出现此错误,因为我以前没有任何问题。

我还使用以下代码安装了TensorFlow联合:

pip install --upgrade tensorflow-federated-nightly 

但我收到相同的错误。

我如何修复它?

我的版本是: