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
On this page
Latest version 1.8.4, released February 6, 2019. Source repository
Packages on PyPI run on Python. Python end of life dates.
torchrl 0.15.0 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 - Behavior changed
CQLLoss
loss_cql values change; pass use_prioritized_weights=False to reproduce v0.14 numbers with prioritized replay. github.com - Behavior changed
HardUpdate
HardUpdate now copies every value_network_update_interval steps instead of every interval plus one. github.com - Behavior changed
ReplayBuffer.sample
Dashboards keyed on old metric names need updating, or pass telemetry="minimal" to the on-policy trainers. github.com - Behavior changed
SharedMemWeightSyncScheme
Until v0.16 the default warns; atomic=True gives workers private weight copies that switch only on update. github.com - 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 - 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 - Configuration changed
TorchRL 0.15 needs PyTorch 2.11+ and tensordict>=0.15.2,<0.16.0; install matching release lines together. github.com - 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 - 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 - Signature changed
sota-implementations.dreamer.dreamer.PolicyVersion
Was from torchrl.envs.llm.transforms import PolicyVersion; now from torchrl.envs.transforms import PolicyVersion. pypi.org - Signature changed
sota-implementations.multiagent.utils.utils.DoneTransform
Was class DoneTransform(Transform); now from torchrl.envs.transforms import DoneTransform. pypi.org - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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
And 25 more in this version. Sign up to see every change
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The 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.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.