I've created a custom environment for the Pursuit Domain, based on the colabs environment tutorial, validated it using utils.validate_py_environment(environment, episodes=5), however when testing it with a QNetworkAgent, I get the following AttributeError:
AttributeError: 'tuple' object has no attribute 'ndims'
from agents/dqn/dqn_agent.pydqn_agent.py, line 159:
# TODO(oars): Get DQN working with more than one dim in the actions.
if len(flat_action_spec) > 1 or flat_action_spec[0].shape.ndims > 1:
raise ValueError('Only one dimensional actions are supported now.')
I've created a custom environment for the Pursuit Domain, based on the colabs environment tutorial, validated it using
utils.validate_py_environment(environment, episodes=5)
, however when testing it with a QNetworkAgent, I get the following AttributeError:AttributeError: 'tuple' object has no attribute 'ndims'
from agents/dqn/dqn_agent.pydqn_agent.py, line 159:Here is my environment's constructor and getters:
The CardGameEnv also has the same BoundedArraySpec with shape set to a tuple (also not working with the DQN). What am I missing?