Closed cwfparsonson closed 1 year ago
Hi, I'm a bot from the Ray team :)
To help human contributors to focus on more relevant issues, I will automatically add the stale label to issues that have had no activity for more than 4 months.
If there is no further activity in the 14 days, the issue will be closed!
You can always ask for help on our discussion forum or Ray's public slack channel.
Hi @cwfparsonson ,
IterableNameComparable is not implemented by RLlib but part of the external library you use. space_utils.py needs an iterable that actually implements the len method. IterableNameComparable does not seem to implement that and we can't change that in RLlib. Afaics, IterableNameComparable is part of Neural MMO and you'll have to open a feature request with Joseph Suarez over at Neural MMO.
I'm closing this issue since we can't do anything here. Feel free to reopen if you disagree or for any other reason 🙂
What happened + What you expected to happen
I have a custom multi-agent environment with a nested action space dict of the form:
I then have a custom policy which returns actions of the form:
I am then loading this custom environment and agent into an RLlib trainer and calling
trainer.train()
- the actions and observations are computed fine, but theunbatch()
function inray/rllib/utils/spaces/space_utils.py
seems to be unable to unbatch my actions when called fromray/rllib/evaluation/sampler.py
:Is this error being thrown because my custom environment actions have to be custom objects rather than
torch
ornumpy
arrays? Does anyone have any idea how to begin fixing this issue so thattrainer.train()
can handle my custom actions?Versions / Dependencies
ray 2.0.0 python 3.9.0
Reproduction script
N/A
Issue Severity
High: It blocks me from completing my task.