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

[Refactoring] Minor tweaks to recorder and logger #489

Merged
merged 2 commits into from
Sep 26, 2022

Conversation

nicolas-dufour
Copy link
Contributor

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

Description

Minor changes to recorder and logger.

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 26, 2022
@vmoens vmoens changed the title Minor tweaks to recorder and logger [Refactoring] Minor tweaks to recorder and logger Sep 26, 2022
@vmoens vmoens added the enhancement New feature or request label Sep 26, 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.

Let's see what we should do about the empty_cache(), otherwise LGTM

@@ -933,12 +932,11 @@ def __init__(
def __call__(self, batch: TensorDictBase) -> Dict:
out = None
if self._count % self.record_interval == 0:
torch.cuda.empty_cache()
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we added this because of weird cuda mem issues which I believe are solved now. Can we remove this and try to train something like dreamer while looking at the mem on devices?
Asking this because this operation takes a considerable amount of time :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes i agree let's remove this

@vmoens vmoens merged commit e23518e into pytorch:main Sep 26, 2022
@nicolas-dufour nicolas-dufour deleted the recorder_tweaks branch September 26, 2022 12: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