ngx-toastr icon indicating copy to clipboard operation
ngx-toastr copied to clipboard

Issue #348: len is not well defined for symbolic Tensors

Open rckitson opened this issue 5 years ago • 2 comments

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

rckitson avatar Jan 20 '20 02:01 rckitson

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:

msat59 avatar Apr 18 '20 21:04 msat59

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

dave7895 avatar May 14 '20 23:05 dave7895