Skip to content

Conversation

@vmoens
Copy link
Collaborator

@vmoens vmoens commented Dec 16, 2022

Description

NoopReset should not be used after a batched env but inside (ie tied to every singe env).
We add an error message for this

@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 Dec 16, 2022
@vmoens vmoens added the bug Something isn't working label Dec 16, 2022
@codecov
Copy link

codecov bot commented Dec 16, 2022

Codecov Report

Merging #747 (3726729) into main (2b18311) will increase coverage by 0.00%.
The diff coverage is 76.47%.

@@           Coverage Diff           @@
##             main     #747   +/-   ##
=======================================
  Coverage   88.76%   88.76%           
=======================================
  Files         123      123           
  Lines       20810    20829   +19     
=======================================
+ Hits        18471    18489   +18     
- Misses       2339     2340    +1     
Flag Coverage Δ
habitat-gpu 25.16% <0.00%> (-0.02%) ⬇️
linux-brax 29.55% <4.76%> (-0.02%) ⬇️
linux-cpu 85.27% <76.47%> (+<0.01%) ⬆️
linux-gpu 86.20% <76.47%> (+<0.01%) ⬆️
linux-jumanji 30.29% <4.76%> (-0.02%) ⬇️
linux-outdeps-gpu 72.06% <76.47%> (+0.04%) ⬆️
linux-stable-cpu 85.13% <76.47%> (+<0.01%) ⬆️
linux-stable-gpu 85.83% <76.47%> (+<0.01%) ⬆️
linux_examples-gpu 43.11% <4.76%> (-0.03%) ⬇️
macos-cpu 84.95% <76.47%> (+<0.01%) ⬆️
olddeps-gpu 75.93% <72.72%> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
torchrl/envs/transforms/transforms.py 87.25% <61.90%> (-0.01%) ⬇️
test/test_transforms.py 96.37% <100.00%> (+0.03%) ⬆️
torchrl/envs/common.py 84.18% <100.00%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@vmoens vmoens merged commit 4e48655 into main Dec 16, 2022
@vmoens vmoens deleted the fix_noop branch December 16, 2022 13:41
vmoens added a commit that referenced this pull request Dec 23, 2022
* [BugFix] Fix NoopReset in parallel settings (#747)

* [Refactor] Remove env.is_done attribute (#748)

* Drop use of prototype modules (#738)

* Fix test_cost

* Lint and format

* Fix test_postprocs

* Fix test_collectors

* amend

* [BugFix] Fixes for `speed` branch merge on tensordict (#755)

* init

* empty

* empty

* amend

* empty

* run legit tests

* empty

* reset_workers

* brax/jumanji fix

* lint

* reward shape for jumanji

* jumanji

* jumanji

* bf

* amend

* amend

* amend

* bf

* bf

* bf

Co-authored-by: Tom Begley <tomcbegley@gmail.com>
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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants