LibTorch-Lite breaking changes
LibTorch-Lite 2.0.0 (October 11, 2023) is its newest release with breaking changes, 40 of them. The first: LibTorch-Lite 2.0.0 requires CUDA 11.0 or later. Every breaking API change we have recorded in LibTorch-Lite on CocoaPods: 40 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-Lite 2.0.0 breaking changes
- Removed
The minimum supported CUDA version is now 11.0. Users on CUDA 10 must upgrade. github.com - Removed
PyTorch 2.0 requires Python 3.8 or later to install. Users on Python 3.7 must upgrade Python. github.com - Removed
at.frobenius_norm
The tensor overload of frobenius_norm is removed; it was not used by bindings and should not affect torch.norm users. github.com - Removed
FullyShardedDataParallel.params_with_grad
The params_with_grad method is removed. Filter self.parameters() by grad instead. github.com - Removed
lazy.View
The view and aliasing infrastructure in lazy tensor core is removed in favor of functionalization. github.com - Removed
ShardingStrategy
Wildcard imports of the FSDP module no longer expose non-public symbols such as ShardingStrategy. Import them explicitly. github.com - Removed
torch._six
The six, future and torch._six compatibility modules are removed; use builtins or torch.inf. github.com - Removed
torch.ao.quantization.fx.backend_config_utils.get_native_quant_patterns
Four mistakenly public functions are removed; use the underscored replacements in their modules. github.com - Removed
torch.ao.quantization.fx.backend_config_utils.get_quantize_handler_cls
Four mistakenly public functions are removed; use the underscored replacements in their modules. github.com - Removed
torch.ao.quantization.fx.utils.create_qparam_nodes
Several unused functions are removed from the quantization fx utils namespaces. github.com - Removed
torch.ao.quantization.fx.utils.get_per_tensor_qparams
Several unused functions are removed from the quantization fx utils namespaces. github.com - Removed
torch.ao.quantization.fx.utils.get_qconv_op
Several unused functions are removed from the quantization fx utils namespaces. github.com - Removed
torch.ao.quantization.fx.utils.graph_pretty_str
Several unused functions are removed from the quantization fx utils namespaces. github.com - Removed
torch.ao.quantization.fx.utils.is_get_tensor_info_node
Several unused functions are removed from the quantization fx utils namespaces. github.com - Removed
torch.ao.quantization.fx.utils.node_return_type_is_int
Several unused functions are removed from the quantization fx utils namespaces. github.com - Removed
torch.ao.quantization.fx.utils.quantize_node
Several unused functions are removed from the quantization fx utils namespaces. github.com - Removed
torch.ao.quantization.quantization_patterns
Handler classes move to quantize_handler and fuse_handler namespaces. github.com - Removed
torch.deploy
torch::deploy has moved to the MultiPy project and is no longer in PyTorch core. github.com - Removed
torch.Graph.op
Methods op, at, constant and __getitem__ added to torch.Graph, Block and Node by torch.onnx are gone. Use g.op() on GraphContext in custom symbolic functions. github.com - Removed
torch.testing.get_all_device_types
The deprecated torch.testing items are removed in 2.0. Stop using them. github.com - Removed
torch.testing.make_non_contiguous
The deprecated torch.testing items are removed in 2.0. Stop using them. github.com - Removed
torch.testing.rand
The deprecated torch.testing items are removed in 2.0. Stop using them. github.com - Removed
torch.testing.randn
The deprecated torch.testing items are removed in 2.0. Stop using them. github.com - Renamed
c10.fromIntArrayRef
The function is renamed to fromIntArrayRefSlow. Update call sites. github.com - Renamed
get_observer_dict
Private AO quantization APIs now carry a leading underscore. Update imports to the underscored names. github.com - Behavior changed
overwrite_output_observer
Wrong observers for fixed qparams ops are ignored with a warning rather than an exception. Use get_default_qconfig_mapping to get quantization. github.com - Behavior changed
torch.diagonal_scatter
These scatter ops now keep the input tensor's strides and storage offset instead of returning contiguous tensors. github.com - Behavior changed
torch.istft
Inputs must be complex-valued tensors. Convert real inputs with torch.view_as_complex before calling istft. github.com - Behavior changed
torch.nn.utils.stateless.functional_call
Providing one tied weight now updates every tied weight. Pass tie_weights=False to get the previous behavior. github.com - Behavior changed
torch.onnx.export
The full_check parameter of check_onnx_proto is removed and full checking always runs, with warnings on failure. github.com - Behavior changed
torch.save
Attributes set on tensors and Parameters are now saved and restored by torch.save and torch.load. Use WeakTensorKeyDictionary for attributes that must not be serialized. github.com - Default changed
adam
On CUDA with native tensors, optimizers now use the foreach implementation by default, which can give small numerical differences. Pass foreach=False to keep the old behavior. github.com - Default changed
torch.sparse_coo_tensor
Component verification is now disabled by default. Pass check_invariants=True or use torch.sparse.check_sparse_tensor_invariants to enable it. github.com - Default changed
zero_grad
Gradients are set to None instead of zero tensors, which breaks code that reads or computes on grads after zero_grad(). Pass set_to_none=False to keep the old behavior. github.com - Signature changed
alltoall
The output and input keyword arguments are renamed to output_tensors and input_tensors. github.com - Signature changed
BackendPatternConfig
Fusion patterns now use natural order and fuser methods take arguments in that order. Old reversed nested tuple patterns need _set_pattern_complex_format. github.com - Signature changed
lambda_auto_wrap_policy
The unwrapped_params keyword is replaced by nonwrapped_numel in the auto-wrap policy functions. github.com - Signature changed
size_based_auto_wrap_policy
The unwrapped_params keyword is replaced by nonwrapped_numel in the auto-wrap policy functions. github.com - Signature changed
torch.stft
For real inputs, return_complex is now a required argument with no default. Pass it explicitly. github.com - Signature changed
transformer_auto_wrap_policy
The unwrapped_params keyword is replaced by nonwrapped_numel in the auto-wrap policy functions. github.com
Related packages
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.