Repository navigation
Remove TorchScript Python compatibility APIs - #27
Merged
Merged
Conversation
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
marked this pull request as ready for review
November 2, 2026 04:04
cyyever
added a commit
that referenced
this pull request
Nov 2, 2026
…-api Remove TorchScript Python compatibility APIs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary (human written only)
BC-breaking?
Yes. This removes the
torch.jitPython 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.jitshims, remove stale Dynamo handling and public API metadata, and update related docs/tests. Low-leveltorch._C.ScriptFunctionsupport 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 --checkpassed. Tests and lint were not run;spinandlintrunnerare unavailable in the checkout and adjacent virtual environment.