Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@gmagogsfm
Copy link
Contributor

Reviewed By: ydwu4

Differential Revision: D72435827

@pytorch-bot
Copy link

pytorch-bot bot commented Apr 8, 2025

🔗 Helpful Links

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

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

✅ No Failures

As of commit ac50759 with merge base ef10f34 (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 facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Apr 8, 2025
@facebook-github-bot
Copy link
Contributor

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

if TORCH_VERSION_AT_LEAST_2_5:
model = torch.export.export_for_training(model, example_inputs).module()
model = torch.export.export_for_training(
model, example_inputs, strict=True
Copy link
Contributor

@jerryzh168 jerryzh168 Apr 8, 2025

Choose a reason for hiding this comment

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

is strict False by default now? do we need to add this everywhere?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

strict=False is not by default yet, but it will be. I don't think you need to add this everywhere as in vast majority of use cases, the end graphs should be the same.

Copy link
Contributor

Choose a reason for hiding this comment

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

I see, then why do we add strict=True here if the end model will be the same?

Choose a reason for hiding this comment

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

I think @gmagogsfm was just doing a code mod change and this is just for preserving the old behaviour?

@gmagogsfm gmagogsfm added the topic: not user facing Use this tag if you don't want this PR to show up in release notes label Apr 8, 2025
Summary: Pull Request resolved: pytorch#2029

Reviewed By: ydwu4

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

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

@facebook-github-bot facebook-github-bot merged commit 245e158 into pytorch:main Apr 8, 2025
20 checks passed
jainapurva pushed a commit that referenced this pull request Apr 8, 2025
Differential Revision: D72435827

Pull Request resolved: #2029
liangel-02 pushed a commit that referenced this pull request Aug 25, 2025
Differential Revision: D72435827

Pull Request resolved: #2029
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported topic: not user facing Use this tag if you don't want this PR to show up in release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants