模块'keras.api._v2.keras.Experial'没有属性'PeepholeLSTMCell' [英] module 'keras.api._v2.keras.experimental' has no attribute 'PeepholeLSTMCell'

查看:0
本文介绍了模块'keras.api._v2.keras.Experial'没有属性'PeepholeLSTMCell'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试在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 

但我收到相同的错误。

我如何修复它?

我的版本是:

<<2-0]>, keras 2.8.0tensorflow-federated-nightly 0.19.0.dev20220218

推荐答案

要使用与TensorFlow 2.8.0联合的TensorFlow,请尝试新发布的版本0.20.0pypigithub

tensorflow-federated-nightly包取决于TensorFlow(tf-nightly)、Kera(keras-nightly)等的夜间版本。

这篇关于模块&#39;keras.api._v2.keras.Experial&#39;没有属性&#39;PeepholeLSTMCell&#39;的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆