---
title: "LibTorch 2.0.0 Breaking Changes on CocoaPods | Since.dev"
description: "What each LibTorch release removed, renamed or changed: 42 breaking changes in 1 version on CocoaPods, each with its source."
canonical_url: https://since.dev/packages/cocoapods/LibTorch
last_updated: 2026-12-04
---

# LibTorch breaking changes

LibTorch 2.0.0 (October 11, 2023) is its newest release with breaking changes, 42 of them. The first: LibTorch 2.0.0 requires CUDA 11.0 or later. Every breaking API change we have recorded in LibTorch on CocoaPods: 42 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 `2.1.0`, released October 11, 2023. [Source repository](https://github.com/pytorch/pytorch)

## LibTorch 2.0.0 breaking changes

LibTorch 2.0.0, released October 11, 2023: 42 breaking changes.

- **Removed**  

Minimum CUDA version is now 11.0. [github.com](https://github.com/pytorch/pytorch/releases/tag/v2.0.0)
- **Removed** `c10.fromIntArrayRef`  

c10::fromIntArrayRef was renamed to c10::fromIntArrayRefSlow. [github.com](https://github.com/pytorch/pytorch/releases/tag/v2.0.0)
- **Removed** `functorch.compile`  

Use torch.compile() instead of functorch.compile for compilation. [github.com](https://github.com/pytorch/pytorch/releases/tag/v2.0.0)
- **Removed** `torch.ao.quantization.fx.backend_config_utils.get_fusion_pattern_to_fuse_handler_cls`  

Mistakenly public quantization helpers were removed; use the underscore-prefixed versions in fusion_patterns. [github.com](https://github.com/pytorch/pytorch/releases/tag/v2.0.0)
- **Removed** `torch.ao.quantization.fx.backend_config_utils.get_native_quant_patterns`  

Mistakenly public quantization helpers were removed; use the underscore-prefixed versions in quantization_patterns. [github.com](https://github.com/pytorch/pytorch/releases/tag/v2.0.0)
- **Removed** `torch.ao.quantization.fx.backend_config_utils.get_pattern_to_quantize_handlers`  

Mistakenly public quantization helpers were removed; use the underscore-prefixed versions in quantization_patterns. [github.com](https://github.com/pytorch/pytorch/releases/tag/v2.0.0)
- **Removed** `torch.ao.quantization.fx.backend_config_utils.get_quantize_handler_cls`  

Mistakenly public quantization helpers were removed; use the underscore-prefixed versions in quantization_patterns. [github.com](https://github.com/pytorch/pytorch/releases/tag/v2.0.0)
- **Removed** `torch.ao.quantization.fx.utils.create_qparam_nodes`  

Several unused functions were removed from the quantization fx utils namespace. [github.com](https://github.com/pytorch/pytorch/releases/tag/v2.0.0)
- **Removed** `torch.ao.quantization.fx.utils.get_per_tensor_qparams`  

Several unused functions were removed from the quantization fx utils namespace. [github.com](https://github.com/pytorch/pytorch/releases/tag/v2.0.0)
- **Removed** `torch.ao.quantization.fx.utils.get_qconv_op`  

Several unused functions were removed from the quantization fx utils namespace. [github.com](https://github.com/pytorch/pytorch/releases/tag/v2.0.0)
- **Removed** `torch.ao.quantization.fx.utils.graph_pretty_str`  

Several unused functions were removed from the quantization fx utils namespace. [github.com](https://github.com/pytorch/pytorch/releases/tag/v2.0.0)
- **Removed** `torch.ao.quantization.fx.utils.is_get_tensor_info_node`  

Several unused functions were removed from the quantization fx utils namespace. [github.com](https://github.com/pytorch/pytorch/releases/tag/v2.0.0)
- **Removed** `torch.ao.quantization.fx.utils.node_return_type_is_int`  

Several unused functions were removed from the quantization fx utils namespace. [github.com](https://github.com/pytorch/pytorch/releases/tag/v2.0.0)
- **Removed** `torch.ao.quantization.fx.utils.quantize_node`  

Several unused functions were removed from the quantization fx utils namespace. [github.com](https://github.com/pytorch/pytorch/releases/tag/v2.0.0)
- **Removed** `torch.Block.op`  

Methods patched onto torch.Graph, Block and Node by torch.onnx were removed. [github.com](https://github.com/pytorch/pytorch/releases/tag/v2.0.0)
- **Removed** `torch.deploy`  

torch::deploy moved out of PyTorch core to MultiPy; development continues there. [github.com](https://github.com/pytorch/pytorch/releases/tag/v2.0.0)
- **Removed** `torch.distributed.fsdp.fully_sharded_data_parallel.FullyShardedDataParallel.params_with_grad`  

params_with_grad was removed; filter parameters by grad is not None instead. [github.com](https://github.com/pytorch/pytorch/releases/tag/v2.0.0)
- **Removed** `torch.distributed.fsdp.fully_sharded_data_parallel.ShardingStrategy`  

Import ShardingStrategy and other names explicitly instead of using a wildcard import. [github.com](https://github.com/pytorch/pytorch/releases/tag/v2.0.0)
- **Removed** `torch.Graph.at`  

Methods patched onto torch.Graph, Block and Node by torch.onnx were removed. [github.com](https://github.com/pytorch/pytorch/releases/tag/v2.0.0)
- **Removed** `torch.Graph.constant`  

Methods patched onto torch.Graph, Block and Node by torch.onnx were removed. [github.com](https://github.com/pytorch/pytorch/releases/tag/v2.0.0)
- **Removed** `torch.Graph.op`  

Methods patched onto torch.Graph, Block and Node by torch.onnx were removed; use g.op() from GraphContext in custom symbolic functions. [github.com](https://github.com/pytorch/pytorch/releases/tag/v2.0.0)
- **Removed** `torch.nn.utils.stateless.functional_call`  

Moved to torch.func.functional_call; the old name will be removed in a future version. [github.com](https://github.com/pytorch/pytorch/releases/tag/v2.0.0)
- **Removed** `torch.Node.__getitem__`  

Methods patched onto torch.Graph, Block and Node by torch.onnx were removed. [github.com](https://github.com/pytorch/pytorch/releases/tag/v2.0.0)
- **Removed** `torch.testing.get_all_device_types`  

The deprecated torch.testing.get_all_device_types function was removed in 2.0. [github.com](https://github.com/pytorch/pytorch/releases/tag/v2.0.0)
- **Removed** `torch.testing.make_non_contiguous`  

The deprecated torch.testing.make_non_contiguous function was removed in 2.0. [github.com](https://github.com/pytorch/pytorch/releases/tag/v2.0.0)
- **Removed** `torch.testing.rand`  

The deprecated torch.testing.rand and randn functions were removed in 2.0; use other random APIs instead. [github.com](https://github.com/pytorch/pytorch/releases/tag/v2.0.0)
- **Removed** `torch.testing.randn`  

The deprecated torch.testing.randn function was removed in 2.0. [github.com](https://github.com/pytorch/pytorch/releases/tag/v2.0.0)
- **Renamed** `get_observer_dict`  

Private AO quantization APIs were renamed with a leading underscore; update imports to the new names. [github.com](https://github.com/pytorch/pytorch/releases/tag/v2.0.0)
- **Behavior changed** `torch.istft`  

Convert inputs to a complex tensor first, for example with torch.view_as_complex, before calling istft. [github.com](https://github.com/pytorch/pytorch/releases/tag/v2.0.0)
- **Behavior changed** `torch.nn.functional.scaled_dot_product_attention`  

The torch slice/select/diagonal/as_strided scatter ops now return tensors with the input's striding instead of contiguous tensors. [github.com](https://github.com/pytorch/pytorch/releases/tag/v2.0.0)
- **Behavior changed** `torch.nn.utils.stateless.functional_call`  

Providing one tied weight updates all tied weights; pass tie_weights=False to keep the old behavior. [github.com](https://github.com/pytorch/pytorch/releases/tag/v2.0.0)
- **Behavior changed** `torch.save`  

Attributes stored on tensors and Parameters are now serialized, so loaded objects keep them. [github.com](https://github.com/pytorch/pytorch/releases/tag/v2.0.0)
- **Default changed** `torch.nn.Module.zero_grad`  

Gradients are set to None instead of zeros by default; pass set_to_none=False to keep the old behavior. [github.com](https://github.com/pytorch/pytorch/releases/tag/v2.0.0)
- **Default changed** `torch.optim.Adam`  

Optimizers use the faster foreach implementation by default on CUDA, which may give small numerical differences; pass foreach=False to revert. [github.com](https://github.com/pytorch/pytorch/releases/tag/v2.0.0)
- **Default changed** `torch.optim.zero_grad`  

Gradients are set to None instead of zeros by default; pass set_to_none=False to keep the old behavior. [github.com](https://github.com/pytorch/pytorch/releases/tag/v2.0.0)
- **Default changed** `torch.sparse_coo_tensor`  

Component verification is off by default; use check_invariants or torch.sparse.check_sparse_tensor_invariants to enable it. [github.com](https://github.com/pytorch/pytorch/releases/tag/v2.0.0)
- **Signature changed** `alltoall`  

The output and input keyword arguments were renamed to output_tensors and input_tensors. [github.com](https://github.com/pytorch/pytorch/releases/tag/v2.0.0)
- **Signature changed** `torch.ao.quantization.backend_config.BackendPatternConfig`  

Fusion patterns are now written in natural order and fuser methods receive arguments in that order. [github.com](https://github.com/pytorch/pytorch/releases/tag/v2.0.0)
- **Signature changed** `torch.distributed.fsdp.lambda_auto_wrap_policy`  

The unwrapped_params argument was replaced by nonwrapped_numel in the auto wrap policies. [github.com](https://github.com/pytorch/pytorch/releases/tag/v2.0.0)
- **Signature changed** `torch.distributed.fsdp.size_based_auto_wrap_policy`  

The unwrapped_params argument was replaced by nonwrapped_numel in the auto wrap policies. [github.com](https://github.com/pytorch/pytorch/releases/tag/v2.0.0)
- **Signature changed** `torch.distributed.fsdp.transformer_auto_wrap_policy`  

The unwrapped_params argument was replaced by nonwrapped_numel in the auto wrap policies. [github.com](https://github.com/pytorch/pytorch/releases/tag/v2.0.0)
- **Signature changed** `torch.stft`  

return_complex no longer defaults to False for real inputs; pass it explicitly. [github.com](https://github.com/pytorch/pytorch/releases/tag/v2.0.0)

## Related packages

- [torch](https://since.dev/packages/pypi/torch.md):  on PyPI
- [LibTorch-Lite](https://since.dev/packages/cocoapods/LibTorch-Lite.md)

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