Skip to content

Remove TorchScript Python compatibility APIs - #27

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

cyyever merged 1 commit into
trimfrom
cleanup/remove-torchscript-python-api

Conversation

@cyyever

@cyyever cyyever commented Nov 2, 2026

Copy link
Copy Markdown
Collaborator

Summary (human written only)

“彻底删除torch jit?”

“因为我们是私有fork”

BC-breaking?

Yes. This removes the torch.jit Python compatibility module and its annotations module. Callers relying on these imports or identity decorators must remove them or use eager Python functions directly.

Agent details (if applicable)

Codex-generated implementation summary: delete the no-op torch.jit shims, remove stale Dynamo handling and public API metadata, and update related docs/tests. Low-level torch._C.ScriptFunction support remains for existing Dynamo/runtime use.

Maintainer-provided context: the quoted request above asks to remove TorchScript Python APIs because this is a private fork.

Validation: git diff --check passed. Tests and lint were not run; spin and lintrunner are unavailable in the checkout and adjacent virtual environment.

Remove the torch.jit identity shim and stale Dynamo integrations while retaining low-level ScriptFunction runtime support. Update API metadata and project guidance for the private trim.

Test Plan: Not run; git diff --check passed.
@cyyever
cyyever marked this pull request as ready for review November 2, 2026 04:04
@cyyever
cyyever merged commit ef6416b into trim Nov 2, 2026
47 checks passed
cyyever added a commit that referenced this pull request Nov 2, 2026
…-api

Remove TorchScript Python compatibility APIs
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