Skip to content

Conversation

@rckitson
Copy link

This only addresses the first half of Issue #348 , but was able to run examples of DQN and DDPG with:

  • tensorflow 1.15.0
  • keras 2.3.1

@msat59
Copy link

msat59 commented Apr 18, 2020

This only addresses the first half of Issue #348 , but was able to run examples of DQN and DDPG with:

  • tensorflow 1.15.0
  • keras 2.3.1

I faced the same error with tensorflow 1.15.0. I fixed manually the dqn.py line 108:

original code:
if hasattr(model.output, '__len__') and len(model.output) > 1:

changed to
108 if hasattr(model.output, '__len__') and model.output.shape[0] > 1:

Copy link

@msat59 msat59 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please change model.shape[0] to model.output.shape[0]; otherwise, python says:

{AttributeError}'Sequential' object has no attribute 'shape'

@dave7895
Copy link

With this fix I get the error TypeError: '>' not supported between instances of 'NoneType' and 'int'.

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

Successfully merging this pull request may close these issues.

4 participants