Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: 'PredNet' object has no attribute 'units' #40

Open
Khatwani13 opened this issue Jun 5, 2018 · 1 comment
Open

AttributeError: 'PredNet' object has no attribute 'units' #40

Khatwani13 opened this issue Jun 5, 2018 · 1 comment

Comments

@Khatwani13
Copy link

Hi,
I'm using python=2.7, tensorflow=1.5.0, keras=2.0.2 and I'm facing issue with prednet_train.py

Traceback (most recent call last):
  File "train.py", line 59, in <module>
    errors = prednet(inputs)    # (?, nt, nb_layers)
  File "/home/ubuntu/.virtualenvs/keras_tf/local/lib/python2.7/site-packages/keras/layers/recurrent.py", line 252, in __call__
    return super(Recurrent, self).__call__(inputs, **kwargs)
  File "/home/ubuntu/.virtualenvs/keras_tf/local/lib/python2.7/site-packages/keras/engine/topology.py", line 554, in __call__
    output = self.call(inputs, **kwargs)
  File "/home/ubuntu/.virtualenvs/keras_tf/local/lib/python2.7/site-packages/keras/layers/recurrent.py", line 269, in call
    initial_states = self.get_initial_states(inputs)
  File "/home/ubuntu/.virtualenvs/keras_tf/local/lib/python2.7/site-packages/keras/layers/recurrent.py", line 218, in get_initial_states
    initial_state = K.tile(initial_state, [1, self.units])  # (samples, output_dim)
AttributeError: 'PredNet' object has no attribute 'units'
@edwardmfho
Copy link

I faced similar issue as well. Were you able to resolve this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants