Skip to content

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

@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 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
@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

@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

@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 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

@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. 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

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