Home > Software engineering >  module 'keras.api._v2.keras.experimental' has no attribute 'PeepholeLSTMCell' -
module 'keras.api._v2.keras.experimental' has no attribute 'PeepholeLSTMCell' -

Time:03-07

I ran the following code:

!pip3 install --quiet --upgrade tensorflow-federated-nightly
!pip3 install --quiet --upgrade nest-asyncio
import nest_asyncio
nest_asyncio.apply()

and then tried to call this following library

import tensorflow_federated as tff

and that is when I am getting the following error:

AttributeError: module 'keras.api._v2.keras.experimental' has no attribute 'PeepholeLSTMCell'

May I know what can I do to resolve this issue. I am running this code in google colab.

CodePudding user response:

Your problem has been discussed in this question too. You may love to check it out.

module 'keras.api._v2.keras.experimental' has no attribute 'PeepholeLSTMCell'

  • Related