Skip to content
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

[Features]: Changed _inplace_update cls parameter passing in __new__ #464

Merged
merged 6 commits into from
Sep 22, 2022

Conversation

nicolas-dufour
Copy link
Contributor

@nicolas-dufour nicolas-dufour commented Sep 16, 2022

Description

Changed _inplace_update param setting in env so that it can be overwriten from inherited envs.

Motivation and Context

  • I have raised an issue to propose this change (required for new features and bug fixes)

Types of changes

What types of changes does your code introduce? Remove all that do not apply:

  • New feature (non-breaking change which adds core functionality)

Checklist

Go over all the following points, and put an x in all the boxes that apply.
If you are unsure about any of these, don't hesitate to ask. We are here to help!

@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 Sep 16, 2022
torchrl/envs/common.py Outdated Show resolved Hide resolved
@vmoens vmoens changed the title [Features]: Changed in_place cls parameter passing in _new_ [Features]: Changed _in_place cls parameter passing in __new__ Sep 16, 2022
@vmoens vmoens changed the title [Features]: Changed _in_place cls parameter passing in __new__ [Features]: Changed _inplace_update cls parameter passing in __new__ Sep 16, 2022
@vmoens vmoens added the enhancement New feature or request label Sep 22, 2022
Copy link
Contributor

@vmoens vmoens left a comment

Choose a reason for hiding this comment

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

LGTM

@vmoens vmoens merged commit 3d76553 into pytorch:main Sep 22, 2022
@nicolas-dufour nicolas-dufour deleted the fix_in_place branch September 22, 2022 16:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants