KEMBAR78
[export] Remove custom forward func in swap by angelayi · Pull Request #139126 · pytorch/pytorch · GitHub
Skip to content

Conversation

@angelayi
Copy link
Contributor

@angelayi angelayi commented Oct 28, 2024

Stack from ghstack (oldest at bottom):

Differential Revision: D65100694

Remove the custom forward function and instead move the pytree flatten/unflatten ops into the graph. This allows us to natively run via the interpreter.

@pytorch-bot
Copy link

pytorch-bot bot commented Oct 28, 2024

🔗 Helpful Links

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

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

✅ No Failures

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

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

@angelayi
Copy link
Contributor Author

@angelayi has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@pytorch-bot pytorch-bot bot added the ciflow/trunk Trigger trunk jobs on your pull request label Oct 28, 2024
@facebook-github-bot
Copy link
Contributor

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

angelayi added a commit that referenced this pull request Oct 29, 2024
Pull Request resolved: #139126




@imported-using-ghimport

Differential Revision: [D65100694](https://our.internmc.facebook.com/intern/diff/D65100694/)
ghstack-source-id: 250713739
@angelayi angelayi changed the title [export] Remove custom forward func [export] Remove custom forward func in swap Oct 29, 2024
}

gm = ep.module()
gm.validate_inputs = False # type: ignore[assignment]
Copy link
Contributor

Choose a reason for hiding this comment

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

Why?

@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

rahulsingh-intel pushed a commit to rahulsingh-intel/pytorch that referenced this pull request Nov 5, 2024
Differential Revision: [D65100694](https://our.internmc.facebook.com/intern/diff/D65100694)

Remove the custom forward function and instead move the pytree flatten/unflatten ops into the graph. This allows us to natively run via the interpreter.
Pull Request resolved: pytorch#139126
Approved by: https://github.com/avikchaudhuri
@github-actions github-actions bot deleted the gh/angelayi/61/head branch November 30, 2024 02:08
Esquains pushed a commit to Esquains/study1 that referenced this pull request Dec 15, 2024
ghstack-source-id: eeefdaf
Pull Request resolved: pytorch/pytorch#139126
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