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

# torchdata breaking changes

torchdata 0.11.0 (February 20, 2025) is its newest release with breaking changes, 9 of them. The first: Removed torchdata.stateful_dataloader.sampler.BatchSampler.load_state_dict. Every breaking API change we have recorded in torchdata on PyPI: 12 breaking changes in 2 versions. Below, its 2 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `0.11.0`, released February 20, 2025. 

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

- From [0.10.0](#v-0-10-0) to [0.11.0](#v-0-11-0): 9 breaking changes in 1 version.

## torchdata 0.11.0 breaking changes

torchdata 0.11.0, released February 20, 2025: 9 breaking changes.

- **Removed** `torchdata.stateful_dataloader.sampler.BatchSampler.load_state_dict`  

BatchSampler.load_state_dict was removed in torchdata 0.11.0 [pypi.org](https://pypi.org/project/torchdata/0.11.0/)
- **Removed** `torchdata.stateful_dataloader.sampler.BatchSampler.next_yielded`  

BatchSampler.next_yielded was removed in torchdata 0.11.0 [pypi.org](https://pypi.org/project/torchdata/0.11.0/)
- **Removed** `torchdata.stateful_dataloader.sampler.BatchSampler.sampler_iter`  

BatchSampler.sampler_iter was removed in torchdata 0.11.0 [pypi.org](https://pypi.org/project/torchdata/0.11.0/)
- **Removed** `torchdata.stateful_dataloader.sampler.BatchSampler.samples_yielded`  

BatchSampler.samples_yielded was removed in torchdata 0.11.0 [pypi.org](https://pypi.org/project/torchdata/0.11.0/)
- **Removed** `torchdata.stateful_dataloader.sampler.BatchSampler.state_dict`  

BatchSampler.state_dict was removed in torchdata 0.11.0 [pypi.org](https://pypi.org/project/torchdata/0.11.0/)
- **Signature changed** `torchdata.nodes.ParallelMapper.__init__`  

Was def \_\_init\_\_(self, source: BaseNode\[X\], map_fn: Callable\[\[X\], T\], num_workers: int, in_order: bool = True, method: Literal\['thread', 'process'\] = 'thread', multiprocessing_context: Optional\[str\] = None, max_concurrent: Optional\[int\] =... [pypi.org](https://pypi.org/project/torchdata/0.11.0/)
- **Signature changed** `torchdata.stateful_dataloader.sampler.BatchSampler`  

Was class BatchSampler(torch.utils.data.sampler.BatchSampler, Stateful); now class BatchSampler(torch.utils.data.sampler.BatchSampler). [pypi.org](https://pypi.org/project/torchdata/0.11.0/)
- **Signature changed** `torchdata.stateful_dataloader.sampler.RandomSampler`  

Was class RandomSampler(torch.utils.data.sampler.RandomSampler); now class RandomSampler(Sampler\[int\]). [pypi.org](https://pypi.org/project/torchdata/0.11.0/)
- **Signature changed** `torchdata.stateful_dataloader.StatefulDataLoader.__init__`  

Was def \_\_init\_\_(self, dataset: Dataset\[\_T_co\], batch_size: Optional\[int\] = 1, shuffle: Optional\[bool\] = None, sampler: Union\[Sampler, Iterable, None\] = None, batch_sampler: Union\[Sampler\[List\], Iterable\[List\], None\] = None, num_workers... [pypi.org](https://pypi.org/project/torchdata/0.11.0/)

## torchdata 0.10.0 breaking changes

torchdata 0.10.0, released December 10, 2024: 3 breaking changes.

- **Removed** `torchdata.dataloader2`  

torchdata.dataloader2 was removed in torchdata 0.10.0 [pypi.org](https://pypi.org/project/torchdata/0.10.0/)
- **Removed** `torchdata.datapipes`  

torchdata.datapipes was removed in torchdata 0.10.0 [pypi.org](https://pypi.org/project/torchdata/0.10.0/)
- **Removed** `torchdata.janitor`  

torchdata.janitor was removed in torchdata 0.10.0 [pypi.org](https://pypi.org/project/torchdata/0.10.0/)

## 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.
