pytorch / rl

A modular, primitive-first, python-first PyTorch library for Reinforcement Learning.
https://pytorch.org/rl
MIT License
2.19k stars 289 forks source link

[Feature] Add `modules.OrnsteinUhlenbeckProcessModule` #2297

Closed kurtamohler closed 1 month ago

kurtamohler commented 1 month ago

Description

Add OrnsteinUhlenbeckProcessModule, which serves the same purpose as OrnsteinUhlenbeckProcessWrapper, but derives from TensorDictModuleBase rather than TensorDictModuleWrapper

Motivation and Context

part of #2295

Types of changes

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

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!

pytorch-bot[bot] commented 1 month ago

:link: Helpful Links

:test_tube: See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/rl/2297

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

:x: 11 New Failures, 1 Pending, 2 Unrelated Failures

As of commit 04b151190ba99d3e329238e8a5ad810dd14119c0 with merge base c4b2eb0e0856da812fb9de13170e96fa185ec42b (image):

NEW FAILURES - The following jobs have failed:

* [Continuous Benchmark (PR) / CPU Pytest benchmark](https://hud.pytorch.org/pr/pytorch/rl/2297#27673495897) ([gh](https://github.com/pytorch/rl/actions/runs/10011009958/job/27673495897)) `Workflow failed! Resource not accessible by integration` * [Continuous Benchmark (PR) / GPU Pytest benchmark](https://hud.pytorch.org/pr/pytorch/rl/2297#27673496296) ([gh](https://github.com/pytorch/rl/actions/runs/10011009958/job/27673496296)) `Workflow failed! Resource not accessible by integration` * [Habitat Tests on Linux / tests (3.9, 12.1) / linux-job](https://hud.pytorch.org/pr/pytorch/rl/2297#27673496706) ([gh](https://github.com/pytorch/rl/actions/runs/10011009988/job/27673496706)) `RuntimeError: Command docker exec -t 498ef97fe4973966b55f9cb0bedc25ed6d6ec9b97a0277e72cb52facd6e46c98 /exec failed with exit code 139` * [Unit-tests on Linux / tests-cpu (3.10) / linux-job](https://hud.pytorch.org/pr/pytorch/rl/2297#27673497588) ([gh](https://github.com/pytorch/rl/actions/runs/10011009982/job/27673497588)) `test/test_rb.py::TestStorages::test_state_dict[TensorStorage-tensorclass]` * [Unit-tests on Linux / tests-cpu (3.11) / linux-job](https://hud.pytorch.org/pr/pytorch/rl/2297#27673498059) ([gh](https://github.com/pytorch/rl/actions/runs/10011009982/job/27673498059)) `test/test_rb.py::TestStorages::test_state_dict[TensorStorage-tensorclass]` * [Unit-tests on Linux / tests-cpu (3.8) / linux-job](https://hud.pytorch.org/pr/pytorch/rl/2297#27673498395) ([gh](https://github.com/pytorch/rl/actions/runs/10011009982/job/27673498395)) `test/test_rb.py::TestStorages::test_state_dict[TensorStorage-tensorclass]` * [Unit-tests on Linux / tests-cpu (3.9) / linux-job](https://hud.pytorch.org/pr/pytorch/rl/2297#27673498693) ([gh](https://github.com/pytorch/rl/actions/runs/10011009982/job/27673498693)) `test/test_rb.py::TestStorages::test_state_dict[TensorStorage-tensorclass]` * [Unit-tests on Linux / tests-gpu (3.10, 12.1) / linux-job](https://hud.pytorch.org/pr/pytorch/rl/2297#27673498980) ([gh](https://github.com/pytorch/rl/actions/runs/10011009982/job/27673498980)) `test/test_rb.py::TestStorages::test_state_dict[TensorStorage-tensorclass]` * [Unit-tests on Linux / tests-optdeps (3.10, 12.1) / linux-job](https://hud.pytorch.org/pr/pytorch/rl/2297#27673499618) ([gh](https://github.com/pytorch/rl/actions/runs/10011009982/job/27673499618)) `test/test_rb.py::TestStorages::test_state_dict[TensorStorage-tensorclass]` * [Unit-tests on Linux / tests-stable-gpu (3.10, 11.8) / linux-job](https://hud.pytorch.org/pr/pytorch/rl/2297#27673499901) ([gh](https://github.com/pytorch/rl/actions/runs/10011009982/job/27673499901)) `test/test_rb.py::TestStorages::test_state_dict[TensorStorage-tensorclass]` * [Unit-tests on Windows / unittests-cpu / windows-job](https://hud.pytorch.org/pr/pytorch/rl/2297#27673496099) ([gh](https://github.com/pytorch/rl/actions/runs/10011009979/job/27673496099)) `The process 'C:\Program Files\Git\cmd\git.exe' failed with exit code 128`

BROKEN TRUNK - The following jobs failed but were present on the merge base:

👉 Rebase onto the `viable/strict` branch to avoid these failures

* [Libs Tests on Linux / unittests-gym (3.9, 12.1) / linux-job](https://hud.pytorch.org/pr/pytorch/rl/2297#27673502142) ([gh](https://github.com/pytorch/rl/actions/runs/10011009984/job/27673502142)) ([trunk failure](https://hud.pytorch.org/pytorch/rl/commit/c4b2eb0e0856da812fb9de13170e96fa185ec42b#27609499215)) `AttributeError: module 'torch' has no attribute 'compiler'` * [Unit-tests on Linux / tests-olddeps (3.8, 11.6) / linux-job](https://hud.pytorch.org/pr/pytorch/rl/2297#27673499342) ([gh](https://github.com/pytorch/rl/actions/runs/10011009982/job/27673499342)) ([trunk failure](https://hud.pytorch.org/pytorch/rl/commit/c4b2eb0e0856da812fb9de13170e96fa185ec42b#27609498262)) `AttributeError: module 'torch' has no attribute 'compiler'`

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

kurtamohler commented 1 month ago

I've added the deprecation warning