-
Notifications
You must be signed in to change notification settings - Fork 326
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature] Dict specs in vmas #2415
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/rl/2415
Note: Links to docs will display an error until the docs builds have been completed. ❌ 2 New Failures, 7 Unrelated FailuresAs of commit ed585a8 with merge base 5a81930 (): NEW FAILURES - The following jobs have failed:
FLAKY - The following jobs failed but were likely due to flakiness present on trunk:
BROKEN TRUNK - The following job failed but were present on the merge base:👉 Rebase onto the `viable/strict` branch to avoid these failures
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM thx! Just a nit
torchrl/envs/libs/vmas.py
Outdated
elif isinstance(spec, gym_spaces.Dict): | ||
spec_out = {} | ||
for k in spec.keys(): | ||
key = k |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what does this do?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good question. I have no idea why that was in my code. I hope it was not there for some dark magic that i forgot about
let's activate the vmas tests for this |
I had this feature in my fork for a long time and di not realize it was not in main.
This allows dictionaries as observations in VMAS