alex-petrenko / sample-factory

High throughput synchronous and asynchronous reinforcement learning
https://samplefactory.dev
MIT License
811 stars 109 forks source link

Set device in notebook #262

Closed andrewzhang505 closed 1 year ago

andrewzhang505 commented 1 year ago

Set device to cpu in notebook if cuda not available for https://github.com/alex-petrenko/sample-factory/issues/261

codecov-commenter commented 1 year ago

Codecov Report

Base: 79.49% // Head: 79.52% // Increases project coverage by +0.02% :tada:

Coverage data is based on head (528a44d) compared to base (7509cc4). Patch has no changes to coverable lines.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #262 +/- ## ========================================== + Coverage 79.49% 79.52% +0.02% ========================================== Files 96 96 Lines 7486 7486 ========================================== + Hits 5951 5953 +2 + Misses 1535 1533 -2 ``` | [Impacted Files](https://codecov.io/gh/alex-petrenko/sample-factory/pull/262?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Aleksei+Petrenko) | Coverage Δ | | |---|---|---| | [sample\_factory/algo/learning/learner.py](https://codecov.io/gh/alex-petrenko/sample-factory/pull/262?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Aleksei+Petrenko#diff-c2FtcGxlX2ZhY3RvcnkvYWxnby9sZWFybmluZy9sZWFybmVyLnB5) | `87.99% <0.00%> (-0.16%)` | :arrow_down: | | [sample\_factory/pbt/population\_based\_training.py](https://codecov.io/gh/alex-petrenko/sample-factory/pull/262?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Aleksei+Petrenko#diff-c2FtcGxlX2ZhY3RvcnkvcGJ0L3BvcHVsYXRpb25fYmFzZWRfdHJhaW5pbmcucHk=) | `85.00% <0.00%> (+0.41%)` | :arrow_up: | | [sample\_factory/algo/utils/make\_env.py](https://codecov.io/gh/alex-petrenko/sample-factory/pull/262?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Aleksei+Petrenko#diff-c2FtcGxlX2ZhY3RvcnkvYWxnby91dGlscy9tYWtlX2Vudi5weQ==) | `95.81% <0.00%> (+0.83%)` | :arrow_up: | Help us with your feedback. Take ten seconds to tell us [how you rate us](https://about.codecov.io/nps?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Aleksei+Petrenko). Have a feature suggestion? [Share it here.](https://app.codecov.io/gh/feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Aleksei+Petrenko)

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.