Skip to content

Remove deprecated public API aliases - #23

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

cyyever merged 1 commit into
trimfrom
cleanup/remove-deprecated-public-api

Conversation

@cyyever

@cyyever cyyever commented Nov 2, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Remove deprecated torch.has_cuda, torch.has_cudnn, and torch.has_mps aliases in favor of torch.backends APIs.
  • Remove deprecated torch.set_default_tensor_type; callers should use torch.set_default_dtype and torch.set_default_device.
  • Update the tensor-printing comment that described the removed API's device limitations.

Validation

  • git diff --check passed.
  • Source search found no remaining references to these aliases in the checked-out torch sources.
  • Python tests were not run: this worktree's sparse checkout does not include the test tree.

This intentionally removes deprecated public API compatibility and may break downstream users still calling these names.

@cyyever
cyyever merged commit 58cf47d 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