Error importing TimeDistributed layer in Keras (Anaconda Windows)

685 views
Skip to first unread message

Nishant Prateek

unread,
Jun 3, 2016, 1:14:28 AM6/3/16
to Keras-users
I tried:

from keras.layers import TimeDistributed

It shows the following error:
Traceback (most recent call last):
  File "test.py", line 4, in <module>
    from keras.layers import TimeDistributed, Activation, Dense
ImportError: cannot import name TimeDistributed

When I try doing:

from keras.layers.wrappers import TimeDistributed

I get the following error:
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named wrappers

How do I fix this?

Daπid

unread,
Jun 3, 2016, 2:02:13 AM6/3/16
to Nishant Prateek, Keras-users
On 3 June 2016 at 07:14, Nishant Prateek <nprat...@gmail.com> wrote:
>
> It shows the following error:
> Traceback (most recent call last):
> File "test.py", line 4, in <module>
> from keras.layers import TimeDistributed, Activation, Dense
> ImportError: cannot import name TimeDistributed


Which version of keras are you using? (import keras; keras.__version__)
Reply all
Reply to author
Forward
0 new messages