Skip to content

Remove deprecated torch.norm APIs - #25

Merged
cyyever merged 1 commit into
trimfrom
cleanup/remove-deprecated-norm
Nov 2, 2026
Merged

cyyever merged 1 commit into
trimfrom
cleanup/remove-deprecated-norm

Conversation

@cyyever

@cyyever cyyever commented Nov 2, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Remove deprecated torch.norm and Tensor.norm Python APIs.
  • Keep torch.linalg.norm, torch.linalg.vector_norm, and torch.linalg.matrix_norm as the supported public APIs.
  • Keep the lower-level ATen norm operator unchanged in this PR.

Validation

  • git diff --check passed.
  • Source search found no remaining torch.norm or Tensor.norm call sites outside the removed API definitions and the distinct norm_except_dim operator.
  • Python tests were not run: the sparse checkout does not include the test tree.

This is a breaking removal of deprecated public APIs. Users should migrate based on whether they need a vector or matrix norm; the replacement APIs have different signatures and behavior details.

@cyyever
cyyever merged commit a697332 into trim Nov 2, 2026
46 checks passed
cyyever added a commit that referenced this pull request Nov 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant