我尝试在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'
我不知道为什么会出现此错误,因为我以前没有任何问题。
我还使用以下代码安装了TensorFlow联合:
pip install --upgrade tensorflow-federated-nightly
但我收到相同的错误。
我如何修复它?
我的版本是:
上一篇:使用GPU通过Google CoLab连接到本地运行时连接到、GPU、Google、CoLab
下一篇:净ToolStripMenuItem - 如何访问点击事件产生的项目,而正在加载形式(在运行时)正在加载、形式、事件、项目