KEMBAR78
Remove torch.export.export_for_inference by gmagogsfm · Pull Request #149078 · pytorch/pytorch · GitHub
Skip to content

Conversation

gmagogsfm
Copy link
Contributor

@gmagogsfm gmagogsfm commented Mar 12, 2025

Summary: Remove torch.export.export_for_inference, it is redundant and can always be replaced with torch.export.export_for_training() + run_decompositions()

Test Plan: unit tests

Differential Revision: D71069057

cc @ezyang @gchanan

@pytorch-bot
Copy link

pytorch-bot bot commented Mar 12, 2025

🔗 Helpful Links

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

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

✅ You can merge normally! (1 Unrelated Failure)

As of commit aec2922 with merge base 518563d (image):

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: D71069057

gmagogsfm added a commit to gmagogsfm/pytorch-1 that referenced this pull request Mar 13, 2025
Summary:

X-link: pytorch/ao#1877

Add explicit strict=True argument to export_for_inference callsites and flip default value of strict argument to False.

Test Plan: unit tests

Reviewed By: vkuzo

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

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

gmagogsfm added a commit to gmagogsfm/ao that referenced this pull request Mar 13, 2025
Summary:
X-link: pytorch/pytorch#149078


Add explicit strict=True argument to export_for_inference callsites and flip default value of strict argument to False.

Reviewed By: vkuzo

Differential Revision: D71069057
gmagogsfm added a commit to gmagogsfm/pytorch-1 that referenced this pull request Mar 17, 2025
Summary:

X-link: pytorch/ao#1877

Add explicit strict=True argument to export_for_inference callsites and flip default value of strict argument to False.

Test Plan: unit tests

Reviewed By: vkuzo

Differential Revision: D71069057
gmagogsfm added a commit to gmagogsfm/ao that referenced this pull request Mar 17, 2025
Summary:
X-link: pytorch/pytorch#149078


Add explicit strict=True argument to export_for_inference callsites and flip default value of strict argument to False.

Reviewed By: vkuzo

Differential Revision: D71069057
gmagogsfm added a commit to gmagogsfm/ao that referenced this pull request Mar 17, 2025
Summary:
X-link: pytorch/pytorch#149078


Add explicit strict=True argument to export_for_inference callsites and flip default value of strict argument to False.

Reviewed By: vkuzo

Differential Revision: D71069057
gmagogsfm added a commit to gmagogsfm/ao that referenced this pull request Mar 17, 2025
Summary:
X-link: pytorch/pytorch#149078

Pull Request resolved: pytorch#1877

Add explicit strict=True argument to export_for_inference callsites and flip default value of strict argument to False.

Reviewed By: vkuzo

Differential Revision: D71069057
gmagogsfm added a commit to gmagogsfm/pytorch-1 that referenced this pull request Mar 17, 2025
Summary:

X-link: pytorch/ao#1877

Add explicit strict=True argument to export_for_inference callsites and flip default value of strict argument to False.

Test Plan: unit tests

Reviewed By: vkuzo

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

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

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

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

gmagogsfm added a commit to gmagogsfm/pytorch-1 that referenced this pull request Mar 17, 2025
Summary:
Pull Request resolved: pytorch#149078

X-link: pytorch/ao#1877

Add explicit strict=True argument to export_for_inference callsites and flip default value of strict argument to False.

Test Plan: unit tests

Reviewed By: vkuzo

Differential Revision: D71069057
gmagogsfm added a commit to gmagogsfm/ao that referenced this pull request Mar 18, 2025
Summary:
X-link: pytorch/pytorch#149078


Add explicit strict=True argument to export_for_inference callsites and flip default value of strict argument to False.

Reviewed By: vkuzo

Differential Revision: D71069057
gmagogsfm added a commit to gmagogsfm/pytorch-1 that referenced this pull request Mar 18, 2025
Summary:

X-link: pytorch/ao#1877

Add explicit strict=True argument to export_for_inference callsites and flip default value of strict argument to False.

Test Plan: unit tests

Reviewed By: vkuzo

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

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

@gmagogsfm gmagogsfm changed the title Set default mode of export_for_inference to non-strict Remove torch.export.export_for_inference Mar 18, 2025
@pytorch-bot pytorch-bot bot added the ciflow/trunk Trigger trunk jobs on your pull request label Mar 18, 2025
gmagogsfm added a commit to gmagogsfm/ao that referenced this pull request Mar 19, 2025
Summary:
X-link: pytorch/pytorch#149078


Remove torch.export.export_for_inference, it is redundant and can always be replaced with torch.export.export_for_training() + run_decompositions()

Reviewed By: vkuzo

Differential Revision: D71069057
Summary:

X-link: pytorch/ao#1877

Remove torch.export.export_for_inference, it is redundant and can always be replaced with torch.export.export_for_training() + run_decompositions()

Test Plan: unit tests

Reviewed By: vkuzo

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

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

@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

@gmagogsfm gmagogsfm added the module: bc-breaking Related to a BC-breaking change label Mar 24, 2025
@pytorch-bot pytorch-bot bot added the topic: bc breaking topic category label Mar 24, 2025
amathewc pushed a commit to amathewc/pytorch that referenced this pull request Apr 17, 2025
Summary: Remove torch.export.export_for_inference, it is redundant and can always be replaced with torch.export.export_for_training() + run_decompositions()

Test Plan: unit tests

Differential Revision: D71069057

Pull Request resolved: pytorch#149078
Approved by: https://github.com/tugsbayasgalan
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 Merged module: bc-breaking Related to a BC-breaking change release notes: export topic: bc breaking topic category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants