Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Handle aten.to at submodule boundaries #153972

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

Closed
wants to merge 1 commit into from

Conversation

tugsbayasgalan
Copy link
Contributor

@tugsbayasgalan tugsbayasgalan commented May 20, 2025

Summary: #buildall

Test Plan: CI

Differential Revision: D74582970

When we decompose to inference IR, aten.to can sometimes disappear. As a result, export module call graph tree will start containing dead nodes because previous provenance tracking is insufficient. This PR fixes that. The caveat is that this won't work in general for tensor subclass inputs to submodule that user wants to preserve signature because we always desugar the tensor subclass into constituent tensors in inference IR making it impossible to preserve the original calling convention.

cc @ezyang @SherlockNoMad @EikanWang @jgong5 @wenzhe-nrv

Copy link

pytorch-bot bot commented May 20, 2025

🔗 Helpful Links

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

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

✅ No Failures

As of commit 76cfb7c with merge base bee93f9 (image):
💚 Looks good so far! There are no failures yet. 💚

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

@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D74582970

tugsbayasgalan added a commit to tugsbayasgalan/pytorch that referenced this pull request May 20, 2025
Summary:

#buildall

Test Plan: CI

Differential Revision: D74582970
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D74582970

@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D74582970

tugsbayasgalan added a commit to tugsbayasgalan/pytorch that referenced this pull request May 22, 2025
Summary:

#buildall

Test Plan: CI

Differential Revision: D74582970
@tugsbayasgalan tugsbayasgalan changed the title Make pt2 inference private API use training IR Handle aten.to at submodule boundaries May 22, 2025
@pytorch-bot pytorch-bot bot added the ciflow/trunk Trigger trunk jobs on your pull request label May 22, 2025
tugsbayasgalan added a commit to tugsbayasgalan/pytorch that referenced this pull request May 22, 2025
Summary:

#buildall

Test Plan: CI

Differential Revision: D74582970
tugsbayasgalan added a commit to tugsbayasgalan/pytorch that referenced this pull request May 22, 2025
Summary:

#buildall

Test Plan: CI

Differential Revision: D74582970
tugsbayasgalan added a commit to tugsbayasgalan/pytorch that referenced this pull request May 22, 2025
Summary:

#buildall

Test Plan: CI

Differential Revision: D74582970
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D74582970

1 similar comment
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D74582970

tugsbayasgalan added a commit to tugsbayasgalan/pytorch that referenced this pull request May 22, 2025
Summary:
Pull Request resolved: pytorch#153972

#buildall

Test Plan: CI

Differential Revision: D74582970
tugsbayasgalan added a commit to tugsbayasgalan/pytorch that referenced this pull request May 22, 2025
Summary:

#buildall

Test Plan: CI

Differential Revision: D74582970
tugsbayasgalan added a commit to tugsbayasgalan/pytorch that referenced this pull request May 22, 2025
Summary:

#buildall

Test Plan: CI

Differential Revision: D74582970
pytorch-bot bot pushed a commit that referenced this pull request Jun 12, 2025
Summary:
Pull Request resolved: #153972

#buildall

Test Plan: CI

Reviewed By: SherlockNoMad, avikchaudhuri

Differential Revision: D74582970
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D74582970

tugsbayasgalan added a commit to tugsbayasgalan/pytorch that referenced this pull request Jun 12, 2025
Summary:
Pull Request resolved: pytorch#153972

#buildall

Test Plan: CI

Reviewed By: SherlockNoMad, avikchaudhuri

Differential Revision: D74582970
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D74582970

tugsbayasgalan added a commit to tugsbayasgalan/pytorch that referenced this pull request Jun 12, 2025
Summary:
Pull Request resolved: pytorch#153972

#buildall

Test Plan: CI

Reviewed By: SherlockNoMad, avikchaudhuri

Differential Revision: D74582970
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D74582970

tugsbayasgalan added a commit to tugsbayasgalan/pytorch that referenced this pull request Jun 12, 2025
Summary:
Pull Request resolved: pytorch#153972

#buildall

Test Plan: CI

Reviewed By: SherlockNoMad, avikchaudhuri

Differential Revision: D74582970
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D74582970

tugsbayasgalan added a commit to tugsbayasgalan/pytorch that referenced this pull request Jun 12, 2025
Summary:
Pull Request resolved: pytorch#153972

#buildall

Test Plan: CI

Reviewed By: SherlockNoMad, avikchaudhuri

Differential Revision: D74582970
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D74582970

pytorch-bot bot pushed a commit that referenced this pull request Jun 13, 2025
Summary:
Pull Request resolved: #153972

#buildall

Test Plan: CI

Reviewed By: SherlockNoMad, avikchaudhuri

Differential Revision: D74582970
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D74582970

tugsbayasgalan added a commit to tugsbayasgalan/pytorch that referenced this pull request Jun 13, 2025
Summary:
Pull Request resolved: pytorch#153972

#buildall

Test Plan: CI

Reviewed By: SherlockNoMad, avikchaudhuri

Differential Revision: D74582970
Summary:
Pull Request resolved: pytorch#153972

#buildall

Test Plan: CI

Reviewed By: SherlockNoMad, avikchaudhuri

Differential Revision: D74582970
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D74582970

@facebook-github-bot
Copy link
Contributor

@pytorchbot merge

(Initiating merge automatically since Phabricator Diff has merged)

@pytorchmergebot
Copy link
Collaborator

Merge started

Your change will be merged once all checks pass (ETA 0-4 Hours).

Learn more about merging in the wiki.

Questions? Feedback? Please reach out to the PyTorch DevX Team

Advanced Debugging
Check the merge workflow status
here

thatgeeman pushed a commit to thatgeeman/pytorch-docathon that referenced this pull request Jun 15, 2025
Summary: #buildall

Test Plan: CI

Differential Revision: D74582970

When we decompose to inference IR, aten.to can sometimes disappear. As a result, export module call graph tree will start containing dead nodes because previous provenance tracking is insufficient. This PR fixes that. The caveat is that this won't work in general for tensor subclass inputs to submodule that user wants to preserve signature because we always desugar the tensor subclass into constituent tensors in inference IR making it impossible to preserve the original calling convention.

Pull Request resolved: pytorch#153972
Approved by: https://github.com/avikchaudhuri
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.