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

Open
wants to merge 1 commit into
base: main
Choose a base branch
Loading
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.

❌ 1 New Failure, 5 Pending, 2 Unrelated Failures

As of commit e1dc1e3 with merge base eba5fc9 (image):

NEW FAILURE - The following job has failed:

FLAKY - The following job failed but was likely due to flakiness present on trunk:

UNSTABLE - The following job is marked as unstable, possibly due to flakiness on trunk:

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

Reviewed By: 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 May 22, 2025
Summary:
Pull Request resolved: pytorch#153972

#buildall

Test Plan: CI

Reviewed By: avikchaudhuri

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

#buildall

Test Plan: CI

Reviewed By: avikchaudhuri

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

#buildall

Test Plan: CI

Reviewed By: 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 May 22, 2025
Summary:
Pull Request resolved: pytorch#153972

#buildall

Test Plan: CI

Reviewed By: 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 May 22, 2025
Summary:
Pull Request resolved: pytorch#153972

#buildall

Test Plan: CI

Reviewed By: avikchaudhuri

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

#buildall

Test Plan: CI

Reviewed By: 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 9, 2025
Summary:

#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 9, 2025
Summary:

#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

Summary:

#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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ciflow/trunk Trigger trunk jobs on your pull request fb-exported fx release notes: export
Projects
None yet
Development

Successfully merging this pull request may close these issues.

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