jmpf2018 / ShipAI

Ship simulafor in openai gym style
MIT License
38 stars 9 forks source link

TypeError: len is not well defined for symbolic Tensors. (activation_3/Softsign:0) Please call `x.shape` rather than `len(x)` for shape information. #2

Open pandalion98 opened 5 years ago

pandalion98 commented 5 years ago

Following the instructions in the README, I'm encountering this error:

TypeError: len is not well defined for symbolic Tensors. (activation_3/Softsign:0) Please call `x.shape` rather than `len(x)` for shape information.

I've tried different TensorFlow versions (2.0.0b1, 1.15, etc), keras-rl, and keras-rl2 with no success. I'm only encountering different issues, such as

AttributeError: 'Adam' object has no attribute "_name"
AttributeError: Tensor.op is meaningless when eager execution is enabled.
rejaili commented 4 years ago

Hi! Thanks for using our gym environment and sorry for the delayed answer... Anyways, I checked here and I used keras version 2.2.4 with TensorFlow version 1.9.0 and it worked just fine. Were you able to solve this problem?