I am trying to implement a DQL model on one game of openAI gym. But it\'s giving me following error.
TypeError: len is not well defined for symbolic T
The reason this breaks is because, tf.Tensor
TF 2.0.0 (and TF 1.15) has the __len__
overloaded and raises an exception. But TF 1.14 for example doesn't have the __len__
attribute.
Therefore, anything TF 1.15+ (inclusive) breaks keras-rl
(specifically here), which gives you the above error. So you got two options,