---
title: "torchrl 0.15.0 Breaking Changes on PyPI | Since.dev"
description: "What each torchrl release removed, renamed or changed: 75 breaking changes in 1 version on PyPI, each with its source."
canonical_url: https://since.dev/packages/pypi/torchrl
last_updated: 2026-12-04
---

# torchrl breaking changes

torchrl 0.15.0 (November 10, 2026) is its newest release with breaking changes, 75 of them. The first: Stateful transform after a transform that drops keys now warns in torchrl 0.15.0. Every breaking API change we have recorded in torchrl on PyPI: 75 breaking changes in 1 version. Below, its one version with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `1.8.4`, released February 6, 2019. [Source repository](https://github.com/pytorch/rl)

Packages on PyPI run on Python. [Python end of life dates](https://since.dev/calendar/python.md).

## torchrl 0.15.0 breaking changes

torchrl 0.15.0, released November 10, 2026: 75 breaking changes.

- **Behavior changed**  

A stateful transform placed after a transform whose inverse drops its keys now warns and will raise in v0.17. [github.com](https://github.com/pytorch/rl/releases/tag/v0.15.0)
- **Behavior changed** `CQLLoss`  

loss_cql values change; pass use_prioritized_weights=False to reproduce v0.14 numbers with prioritized replay. [github.com](https://github.com/pytorch/rl/releases/tag/v0.15.0)
- **Behavior changed** `HardUpdate`  

HardUpdate now copies every value_network_update_interval steps instead of every interval plus one. [github.com](https://github.com/pytorch/rl/releases/tag/v0.15.0)
- **Behavior changed** `ReplayBuffer.sample`  

Dashboards keyed on old metric names need updating, or pass telemetry="minimal" to the on-policy trainers. [github.com](https://github.com/pytorch/rl/releases/tag/v0.15.0)
- **Behavior changed** `SharedMemWeightSyncScheme`  

Until v0.16 the default warns; atomic=True gives workers private weight copies that switch only on update. [github.com](https://github.com/pytorch/rl/releases/tag/v0.15.0)
- **Default changed** `EnvBase.reset`  

reset no longer applies state entries in the input by default; pass set_state=True if you relied on that. [github.com](https://github.com/pytorch/rl/releases/tag/v0.15.0)
- **Default changed** `EnvBase.rollout`  

rollout no longer applies state entries in the input by default; pass set_state=True if you relied on that. [github.com](https://github.com/pytorch/rl/releases/tag/v0.15.0)
- **Configuration changed**  

TorchRL 0.15 needs PyTorch 2.11+ and tensordict>=0.15.2,<0.16.0; install matching release lines together. [github.com](https://github.com/pytorch/rl/releases/tag/v0.15.0)
- **Configuration changed**  

Python 3.10 users get TorchRL 0.15 built against PyTorch 2.14.1 because PyTorch 2.15 requires Python 3.11 or later. [github.com](https://github.com/pytorch/rl/releases/tag/v0.15.0)
- **Signature changed** `benchmarks.test_replaybuffer_benchmark.test_slice_sampler_sample`  

Was def test_slice_sampler_sample(benchmark, size, layout, cache_state); now def test_slice_sampler_sample(benchmark, size, layout, cache_state, output_layout). [pypi.org](https://pypi.org/project/torchrl/0.15.0/)
- **Signature changed** `sota-implementations.dreamer.dreamer.PolicyVersion`  

Was from torchrl.envs.llm.transforms import PolicyVersion; now from torchrl.envs.transforms import PolicyVersion. [pypi.org](https://pypi.org/project/torchrl/0.15.0/)
- **Signature changed** `sota-implementations.multiagent.utils.utils.DoneTransform`  

Was class DoneTransform(Transform); now from torchrl.envs.transforms import DoneTransform. [pypi.org](https://pypi.org/project/torchrl/0.15.0/)
- **Signature changed** `torchrl.collectors.BaseCollector.stats`  

Was def stats(self) -> dict\[str, int | float | bool\]; now def stats(self, workers: Literal\['aggregate', 'per_worker', 'both'\] = 'aggregate') -> dict\[str, int | float | bool\]. [pypi.org](https://pypi.org/project/torchrl/0.15.0/)
- **Signature changed** `torchrl.collectors.Collector.__init__`  

Was def \_\_init\_\_(self, create_env_fn: EnvBase | EnvCreator | Sequence\[Callable\[\[\], EnvBase\]\], policy: None | (TensorDictModule | Callable\[\[TensorDictBase\], TensorDictBase\]) = None, \*, policy_factory: Callable\[\[\], Callable\] | None = None... [pypi.org](https://pypi.org/project/torchrl/0.15.0/)
- **Signature changed** `torchrl.collectors.distributed.RayCollector.__init__`  

Was def \_\_init\_\_(self, create_env_fn: Callable | EnvBase | list\[Callable\] | list\[EnvBase\], policy: Callable\[\[TensorDictBase\], TensorDictBase\] | None = None, \*, policy_factory: Callable\[\[\], Callable\] | list\[Callable\[\[\], Callable\]\] | None =... [pypi.org](https://pypi.org/project/torchrl/0.15.0/)
- **Signature changed** `torchrl.collectors.Evaluator.__init__`  

Was def \_\_init\_\_(self, env: EnvBase | Callable\[\[\], EnvBase\], policy: TensorDictModuleBase | Callable | None = None, \*, policy_factory: Callable\[..., Callable\] | None = None, num_trajectories: int = 10, max_steps: int | None = None... [pypi.org](https://pypi.org/project/torchrl/0.15.0/)
- **Signature changed** `torchrl.data.RemoteTensorDictReplayBuffer.sample`  

Was def sample(self, batch_size: int | None = None, include_info: bool | None = None, return_info: bool = False) -> TensorDictBase; now def sample(self, batch_size: int | None = None, include_info: bool | None = None, return_info: bool =... [pypi.org](https://pypi.org/project/torchrl/0.15.0/)
- **Signature changed** `torchrl.data.ReplayBuffer.sample`  

Was def sample(self, batch_size: int | None = None, return_info: bool = False) -> Any; now def sample(self, batch_size: int | None = None, return_info: bool = False, \*, wait: bool = False, timeout: float | None = None, cancel_event: Any |... [pypi.org](https://pypi.org/project/torchrl/0.15.0/)
- **Signature changed** `torchrl.data.SliceSampler.__init__`  

Was def \_\_init\_\_(self, \*, num_slices: int | None = None, slice_len: int | None = None, end_key: NestedKey | None = None, end_keys: Sequence\[NestedKey\] | None = None, traj_key: NestedKey | None = None, step_key: NestedKey | None =... [pypi.org](https://pypi.org/project/torchrl/0.15.0/)
- **Signature changed** `torchrl.data.SliceSamplerWithoutReplacement.__init__`  

Was def \_\_init\_\_(self, \*, num_slices: int | None = None, slice_len: int | None = None, drop_last: bool = False, end_key: NestedKey | None = None, end_keys: Sequence\[NestedKey\] | None = None, traj_key: NestedKey | None = None, ends... [pypi.org](https://pypi.org/project/torchrl/0.15.0/)
- **Signature changed** `torchrl.data.TensorDictReplayBuffer.sample`  

Was def sample(self, batch_size: int | None = None, return_info: bool = False, include_info: bool | None = None) -> TensorDictBase; now def sample(self, batch_size: int | None = None, return_info: bool = False, include_info: bool | None =... [pypi.org](https://pypi.org/project/torchrl/0.15.0/)
- **Signature changed** `torchrl.envs.BraxWrapper.reset`  

Was def reset(self, tensordict: TensorDictBase | None = None, \*, set_state: bool | None = None, \*\*kwargs) -> TensorDictBase; now def reset(self, tensordict: TensorDictBase | None = None, \*, set_state: bool = False, \*\*kwargs) ->... [pypi.org](https://pypi.org/project/torchrl/0.15.0/)
- **Signature changed** `torchrl.envs.BraxWrapper.rollout`  

Was def rollout(self, max_steps: int, policy: Callable\[\[TensorDictBase\], TensorDictBase\] | None = None, callback: Callable\[\[TensorDictBase, ...\], Any\] | None = None, \*, actions: Iterable\[Any\] | None = None, auto_reset: bool = True... [pypi.org](https://pypi.org/project/torchrl/0.15.0/)
- **Signature changed** `torchrl.envs.EnvBase.reset`  

Was def reset(self, tensordict: TensorDictBase | None = None, \*, set_state: bool | None = None, \*\*kwargs) -> TensorDictBase; now def reset(self, tensordict: TensorDictBase | None = None, \*, set_state: bool = False, \*\*kwargs) ->... [pypi.org](https://pypi.org/project/torchrl/0.15.0/)
- **Signature changed** `torchrl.envs.EnvBase.rollout`  

Was def rollout(self, max_steps: int, policy: Callable\[\[TensorDictBase\], TensorDictBase\] | None = None, callback: Callable\[\[TensorDictBase, ...\], Any\] | None = None, \*, actions: Iterable\[Any\] | None = None, auto_reset: bool = True... [pypi.org](https://pypi.org/project/torchrl/0.15.0/)
- **Signature changed** `torchrl.envs.GymLikeEnv.reset`  

Was def reset(self, tensordict: TensorDictBase | None = None, \*, set_state: bool | None = None, \*\*kwargs) -> TensorDictBase; now def reset(self, tensordict: TensorDictBase | None = None, \*, set_state: bool = False, \*\*kwargs) ->... [pypi.org](https://pypi.org/project/torchrl/0.15.0/)
- **Signature changed** `torchrl.envs.GymLikeEnv.rollout`  

Was def rollout(self, max_steps: int, policy: Callable\[\[TensorDictBase\], TensorDictBase\] | None = None, callback: Callable\[\[TensorDictBase, ...\], Any\] | None = None, \*, actions: Iterable\[Any\] | None = None, auto_reset: bool = True... [pypi.org](https://pypi.org/project/torchrl/0.15.0/)
- **Signature changed** `torchrl.envs.IsaacLabWrapper.add_tiled_camera_config`  

Was @staticmethod def add_tiled_camera_config(env_cfg, \*, sensor_name: str = 'tiled_camera', data_type: str = 'rgb', renderer_backend: Literal\['isaac_rtx', 'newton_warp', 'ovrtx'\] | None = None, renderer_cfg: object | None = None, width... [pypi.org](https://pypi.org/project/torchrl/0.15.0/)
- **Signature changed** `torchrl.envs.LBForagingWrapper.reset`  

Was def reset(self, tensordict: TensorDictBase | None = None, \*, set_state: bool | None = None, \*\*kwargs) -> TensorDictBase; now def reset(self, tensordict: TensorDictBase | None = None, \*, set_state: bool = False, \*\*kwargs) ->... [pypi.org](https://pypi.org/project/torchrl/0.15.0/)
- **Signature changed** `torchrl.envs.LBForagingWrapper.rollout`  

Was def rollout(self, max_steps: int, policy: Callable\[\[TensorDictBase\], TensorDictBase\] | None = None, callback: Callable\[\[TensorDictBase, ...\], Any\] | None = None, \*, actions: Iterable\[Any\] | None = None, auto_reset: bool = True... [pypi.org](https://pypi.org/project/torchrl/0.15.0/)
- **Signature changed** `torchrl.envs.LiberoWrapper.reset`  

Was def reset(self, tensordict: TensorDictBase | None = None, \*, set_state: bool | None = None, \*\*kwargs) -> TensorDictBase; now def reset(self, tensordict: TensorDictBase | None = None, \*, set_state: bool = False, \*\*kwargs) ->... [pypi.org](https://pypi.org/project/torchrl/0.15.0/)
- **Signature changed** `torchrl.envs.LiberoWrapper.rollout`  

Was def rollout(self, max_steps: int, policy: Callable\[\[TensorDictBase\], TensorDictBase\] | None = None, callback: Callable\[\[TensorDictBase, ...\], Any\] | None = None, \*, actions: Iterable\[Any\] | None = None, auto_reset: bool = True... [pypi.org](https://pypi.org/project/torchrl/0.15.0/)
- **Signature changed** `torchrl.envs.MeltingpotWrapper.reset`  

Was def reset(self, tensordict: TensorDictBase | None = None, \*, set_state: bool | None = None, \*\*kwargs) -> TensorDictBase; now def reset(self, tensordict: TensorDictBase | None = None, \*, set_state: bool = False, \*\*kwargs) ->... [pypi.org](https://pypi.org/project/torchrl/0.15.0/)
- **Signature changed** `torchrl.envs.MeltingpotWrapper.rollout`  

Was def rollout(self, max_steps: int, policy: Callable\[\[TensorDictBase\], TensorDictBase\] | None = None, callback: Callable\[\[TensorDictBase, ...\], Any\] | None = None, \*, actions: Iterable\[Any\] | None = None, auto_reset: bool = True... [pypi.org](https://pypi.org/project/torchrl/0.15.0/)
- **Signature changed** `torchrl.envs.MicroDuckEnv.__init__`  

Was def \_\_init\_\_(self, microduck_root: str | Path | None = None, \*, tasks: MicroDuckTask | Sequence\[MicroDuckTask\] | None = None, action_scale: float = 0.35, diagnostics: bool = False, root: str | Path | None = None, download: bool | str =... [pypi.org](https://pypi.org/project/torchrl/0.15.0/)
- **Signature changed** `torchrl.envs.MicroDuckEnv.jump_task`  

Was @classmethod def jump_task(cls, \*, weight: float = 1.0, \*\*overrides: Any) -> MicroDuckTask; now @classmethod def jump_task(cls, speed: float = 0.0, \*, weight: float = 1.0, \*\*overrides: Any) -> MicroDuckTask. [pypi.org](https://pypi.org/project/torchrl/0.15.0/)
- **Signature changed** `torchrl.envs.MJLabWrapper.reset`  

Was def reset(self, tensordict: TensorDictBase | None = None, \*, set_state: bool | None = None, \*\*kwargs) -> TensorDictBase; now def reset(self, tensordict: TensorDictBase | None = None, \*, set_state: bool = False, \*\*kwargs) ->... [pypi.org](https://pypi.org/project/torchrl/0.15.0/)
- **Signature changed** `torchrl.envs.MJLabWrapper.rollout`  

Was def rollout(self, max_steps: int, policy: Callable\[\[TensorDictBase\], TensorDictBase\] | None = None, callback: Callable\[\[TensorDictBase, ...\], Any\] | None = None, \*, actions: Iterable\[Any\] | None = None, auto_reset: bool = True... [pypi.org](https://pypi.org/project/torchrl/0.15.0/)
- **Signature changed** `torchrl.envs.MujocoPlaygroundWrapper.reset`  

Was def reset(self, tensordict: TensorDictBase | None = None, \*, set_state: bool | None = None, \*\*kwargs) -> TensorDictBase; now def reset(self, tensordict: TensorDictBase | None = None, \*, set_state: bool = False, \*\*kwargs) ->... [pypi.org](https://pypi.org/project/torchrl/0.15.0/)
- **Signature changed** `torchrl.envs.MujocoPlaygroundWrapper.rollout`  

Was def rollout(self, max_steps: int, policy: Callable\[\[TensorDictBase\], TensorDictBase\] | None = None, callback: Callable\[\[TensorDictBase, ...\], Any\] | None = None, \*, actions: Iterable\[Any\] | None = None, auto_reset: bool = True... [pypi.org](https://pypi.org/project/torchrl/0.15.0/)
- **Signature changed** `torchrl.envs.MultiAction.__init__`  

Was def \_\_init\_\_(self, \*, dim: int = 1, stack_rewards: bool = True, stack_observations: bool = False, action_key: NestedKey | None = None, chunk_key: NestedKey | None = None); now def \_\_init\_\_(self, \*, dim: int = 1, stack_rewards: bool =... [pypi.org](https://pypi.org/project/torchrl/0.15.0/)
- **Signature changed** `torchrl.envs.MultiThreadedEnvWrapper.reset`  

Was def reset(self, tensordict: TensorDictBase | None = None, \*, set_state: bool | None = None, \*\*kwargs) -> TensorDictBase; now def reset(self, tensordict: TensorDictBase | None = None, \*, set_state: bool = False, \*\*kwargs) ->... [pypi.org](https://pypi.org/project/torchrl/0.15.0/)
- **Signature changed** `torchrl.envs.MultiThreadedEnvWrapper.rollout`  

Was def rollout(self, max_steps: int, policy: Callable\[\[TensorDictBase\], TensorDictBase\] | None = None, callback: Callable\[\[TensorDictBase, ...\], Any\] | None = None, \*, actions: Iterable\[Any\] | None = None, auto_reset: bool = True... [pypi.org](https://pypi.org/project/torchrl/0.15.0/)
- **Signature changed** `torchrl.envs.OpenSpielWrapper.reset`  

Was def reset(self, tensordict: TensorDictBase | None = None, \*, set_state: bool | None = None, \*\*kwargs) -> TensorDictBase; now def reset(self, tensordict: TensorDictBase | None = None, \*, set_state: bool = False, \*\*kwargs) ->... [pypi.org](https://pypi.org/project/torchrl/0.15.0/)
- **Signature changed** `torchrl.envs.OpenSpielWrapper.rollout`  

Was def rollout(self, max_steps: int, policy: Callable\[\[TensorDictBase\], TensorDictBase\] | None = None, callback: Callable\[\[TensorDictBase, ...\], Any\] | None = None, \*, actions: Iterable\[Any\] | None = None, auto_reset: bool = True... [pypi.org](https://pypi.org/project/torchrl/0.15.0/)
- **Signature changed** `torchrl.envs.PettingZooWrapper.reset`  

Was def reset(self, tensordict: TensorDictBase | None = None, \*, set_state: bool | None = None, \*\*kwargs) -> TensorDictBase; now def reset(self, tensordict: TensorDictBase | None = None, \*, set_state: bool = False, \*\*kwargs) ->... [pypi.org](https://pypi.org/project/torchrl/0.15.0/)
- **Signature changed** `torchrl.envs.PettingZooWrapper.rollout`  

Was def rollout(self, max_steps: int, policy: Callable\[\[TensorDictBase\], TensorDictBase\] | None = None, callback: Callable\[\[TensorDictBase, ...\], Any\] | None = None, \*, actions: Iterable\[Any\] | None = None, auto_reset: bool = True... [pypi.org](https://pypi.org/project/torchrl/0.15.0/)
- **Signature changed** `torchrl.envs.ProcgenWrapper.reset`  

Was def reset(self, tensordict: TensorDictBase | None = None, \*, set_state: bool | None = None, \*\*kwargs) -> TensorDictBase; now def reset(self, tensordict: TensorDictBase | None = None, \*, set_state: bool = False, \*\*kwargs) ->... [pypi.org](https://pypi.org/project/torchrl/0.15.0/)
- **Signature changed** `torchrl.envs.ProcgenWrapper.rollout`  

Was def rollout(self, max_steps: int, policy: Callable\[\[TensorDictBase\], TensorDictBase\] | None = None, callback: Callable\[\[TensorDictBase, ...\], Any\] | None = None, \*, actions: Iterable\[Any\] | None = None, auto_reset: bool = True... [pypi.org](https://pypi.org/project/torchrl/0.15.0/)
- **Signature changed** `torchrl.envs.SMACv2Wrapper.reset`  

Was def reset(self, tensordict: TensorDictBase | None = None, \*, set_state: bool | None = None, \*\*kwargs) -> TensorDictBase; now def reset(self, tensordict: TensorDictBase | None = None, \*, set_state: bool = False, \*\*kwargs) ->... [pypi.org](https://pypi.org/project/torchrl/0.15.0/)

And 25 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#api) reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

## Put your code on continuous maintenance.

Scan a public repository now, or give your agent one line.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
