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
On this page
Latest version 2.1.0, released October 11, 2023. Source repository
LibTorch 2.0.0 breaking changes
- Removed
Minimum CUDA version is now 11.0. github.com - Removed
c10.fromIntArrayRef
c10::fromIntArrayRef was renamed to c10::fromIntArrayRefSlow. github.com - Removed
functorch.compile
Use torch.compile() instead of functorch.compile for compilation. github.com - 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 - 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 - 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 - 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 - Removed
torch.ao.quantization.fx.utils.create_qparam_nodes
Several unused functions were removed from the quantization fx utils namespace. github.com - Removed
torch.ao.quantization.fx.utils.get_per_tensor_qparams
Several unused functions were removed from the quantization fx utils namespace. github.com - Removed
torch.ao.quantization.fx.utils.get_qconv_op
Several unused functions were removed from the quantization fx utils namespace. github.com - Removed
torch.ao.quantization.fx.utils.graph_pretty_str
Several unused functions were removed from the quantization fx utils namespace. github.com - Removed
torch.ao.quantization.fx.utils.is_get_tensor_info_node
Several unused functions were removed from the quantization fx utils namespace. github.com - Removed
torch.ao.quantization.fx.utils.node_return_type_is_int
Several unused functions were removed from the quantization fx utils namespace. github.com - Removed
torch.ao.quantization.fx.utils.quantize_node
Several unused functions were removed from the quantization fx utils namespace. github.com - Removed
torch.Block.op
Methods patched onto torch.Graph, Block and Node by torch.onnx were removed. github.com - Removed
torch.deploy
torch::deploy moved out of PyTorch core to MultiPy; development continues there. github.com - 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 - Removed
torch.distributed.fsdp.fully_sharded_data_parallel.ShardingStrategy
Import ShardingStrategy and other names explicitly instead of using a wildcard import. github.com - Removed
torch.Graph.at
Methods patched onto torch.Graph, Block and Node by torch.onnx were removed. github.com - Removed
torch.Graph.constant
Methods patched onto torch.Graph, Block and Node by torch.onnx were removed. github.com - 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 - 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 - Removed
torch.Node.__getitem__
Methods patched onto torch.Graph, Block and Node by torch.onnx were removed. github.com - Removed
torch.testing.get_all_device_types
The deprecated torch.testing.get_all_device_types function was removed in 2.0. github.com - Removed
torch.testing.make_non_contiguous
The deprecated torch.testing.make_non_contiguous function was removed in 2.0. github.com - Removed
torch.testing.rand
The deprecated torch.testing.rand and randn functions were removed in 2.0; use other random APIs instead. github.com - Removed
torch.testing.randn
The deprecated torch.testing.randn function was removed in 2.0. github.com - Renamed
get_observer_dict
Private AO quantization APIs were renamed with a leading underscore; update imports to the new names. github.com - Behavior changed
torch.istft
Convert inputs to a complex tensor first, for example with torch.view_as_complex, before calling istft. github.com - 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 - 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 - Behavior changed
torch.save
Attributes stored on tensors and Parameters are now serialized, so loaded objects keep them. github.com - 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 - 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 - 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 - 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 - Signature changed
alltoall
The output and input keyword arguments were renamed to output_tensors and input_tensors. github.com - 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 - 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 - 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 - 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 - Signature changed
torch.stft
return_complex no longer defaults to False for real inputs; pass it explicitly. github.com
Related packages
- torch on PyPI
- LibTorch-Lite
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.