Skip to content

Remove references to TorchScript in docs #3453

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

gmagogsfm
Copy link

  • Removes references to TorchScript
  • Replace it with a deprecation warning and redirect to torch.export when appropriate

Copy link

pytorch-bot bot commented Jul 10, 2025

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/tutorials/3453

Note: Links to docs will display an error until the docs builds have been completed.

✅ No Failures

As of commit 79d4a82 with merge base c1cd7ab (image):
💚 Looks good so far! There are no failures yet. 💚

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@@ -1,400 +0,0 @@
"""
Introduction to TorchScript
===========================
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For all deleted files, please add an entry to https://github.com/pytorch/tutorials/blob/main/redirects.py

>>> print(torch.ops.my_ops.warp_perspective)
<built-in method custom::warp_perspective of PyCapsule object at 0x7ff51c5b7bd0>
TorchScript is deprecated, please use
`torch.export<https://docs.pytorch.org/tutorials/intermediate/torch_export_tutorial.html>`_ instead.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add an issue for all these pages with warning like this with the plan to delete them by {date} or {release}

@svekars svekars added the tutorials_audit used on tutorial audit PRs label Jul 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla signed tutorials_audit used on tutorial audit PRs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants