Skip to content

Conversation

vmoens
Copy link
Collaborator

@vmoens vmoens commented Jul 16, 2025

Closes #3073

Additionally fixes prints of empty Composite specs

Copy link

pytorch-bot bot commented Jul 16, 2025

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/rl/3076

Note: Links to docs will display an error until the docs builds have been completed.

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jul 16, 2025
@vmoens vmoens added bug Something isn't working Suitable for minor Suitable to be integrated in minor release (no new feature) labels Jul 16, 2025
@vmoens vmoens force-pushed the fix-inplace-modif-specs branch from 4541abd to 168250e Compare July 16, 2025 11:34
@vmoens vmoens force-pushed the fix-inplace-modif-specs branch from 168250e to 91a3a39 Compare July 16, 2025 11:36
@vmoens vmoens merged commit 9f20d16 into main Jul 16, 2025
51 of 71 checks passed
Comment on lines +10430 to +10438
class PatchedRenameTransform(RenameTransform): # type: ignore[misc]
"""
Fixes a bug in the RenameTransform due to modifying the input_spec of the `base_env` to be transformed.
This is fixed by adding a clone to break stateful modifications to proapagate to the `base_env`.
"""

def transform_input_spec(self, input_spec: Composite) -> Composite:
input_spec = input_spec.clone()
return super().transform_input_spec(input_spec)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vmoens This class is not needed by this test anymore

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're right, removed in #3079

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Suitable for minor Suitable to be integrated in minor release (no new feature)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] TransformedEnv modifies itsbase_env input_spec
3 participants