jmpf2018 / ShipAI

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

Error on tensor definition #1

Open jocacace opened 5 years ago

jocacace commented 5 years ago

Dear,

I am trying to create a my own gym environment in order to train my robotic system. I am following your tutorial, but maybe we have a mismatch in the tensorflow versions. Running your script with the following command:

python dqn_keras_rl.py

i got the following error

TypeError: len is not well defined for symbolic Tensors. (activation_4/Identity:0) Please callx.shaperather thanlen(x)for shape information.

which version of TF have used in your program?

Regards,

kingxiaotian commented 4 years ago

how to solve this problem?

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?