Skip to content

Conversation

@Gasoonjia
Copy link
Contributor

Summary:

When comparing AOT intermediate outputs with runtime, we believed that AOT and runtime should have same output for same operator. But if there're multiple intermediate outputs from a single operator / single operator blob, the statement may not correct. Like drop out, which only record output tensor during AOT, but in runtime we record both mask and output tensor.

To support that, for 1 to many scenerio, instead of only take the last element for comparsion, we compare the runtime output sharing the same size and dtype with the aot one to have the best comparsion.

Differential Revision: D91201882

@pytorch-bot
Copy link

pytorch-bot bot commented Jan 22, 2026

🔗 Helpful Links

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

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

✅ No Failures

As of commit 9ee3b57 with merge base 8ab593b (image):
💚 Looks good so far! There are no failures yet. 💚

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

@meta-cla meta-cla 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 Jan 22, 2026
@meta-codesync
Copy link
Contributor

meta-codesync bot commented Jan 22, 2026

@Gasoonjia has exported this pull request. If you are a Meta employee, you can view the originating Diff in D91201882.

@github-actions
Copy link

This PR needs a release notes: label

If your change should be included in the release notes (i.e. would users of this library care about this change?), please use a label starting with release notes:. This helps us keep track and include your important work in the next release notes.

To add a label, you can comment to pytorchbot, for example
@pytorchbot label "release notes: none"

For more information, see
https://github.com/pytorch/pytorch/wiki/PyTorch-AutoLabel-Bot#why-categorize-for-release-notes-and-how-does-it-work.

Copy link
Member

@GregoryComer GregoryComer left a comment

Choose a reason for hiding this comment

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

Can you make sure the Windows test passes before landing? Approving to unblock.

Gasoonjia added a commit to Gasoonjia/executorch-1 that referenced this pull request Jan 22, 2026
Summary:
pytorch#16763

When comparing AOT intermediate outputs with runtime, we believed that AOT and runtime should have same output for same operator. But if there're multiple intermediate outputs from a single operator / single operator blob, the statement may not correct. Like drop out, which only record output tensor during AOT, but in runtime we record both mask and output tensor.

To support that, for 1 to many scenerio, instead of only take the last element for comparsion, we compare the runtime output sharing the same size and dtype with the aot one to have the best comparsion.

Reviewed By: GregoryComer

Differential Revision: D91201882
@Gasoonjia
Copy link
Contributor Author

Can you make sure the Windows test passes before landing? Approving to unblock.

will take a look that, but i believe that's not related to this PR.

Gasoonjia added a commit to Gasoonjia/executorch-1 that referenced this pull request Jan 22, 2026
Summary:

pytorch#16763

When comparing AOT intermediate outputs with runtime, we believed that AOT and runtime should have same output for same operator. But if there're multiple intermediate outputs from a single operator / single operator blob, the statement may not correct. Like drop out, which only record output tensor during AOT, but in runtime we record both mask and output tensor.

To support that, for 1 to many scenerio, instead of only take the last element for comparsion, we compare the runtime output sharing the same size and dtype with the aot one to have the best comparsion.

Reviewed By: GregoryComer

Differential Revision: D91201882
Summary:

pytorch#16763

When comparing AOT intermediate outputs with runtime, we believed that AOT and runtime should have same output for same operator. But if there're multiple intermediate outputs from a single operator / single operator blob, the statement may not correct. Like drop out, which only record output tensor during AOT, but in runtime we record both mask and output tensor.

To support that, for 1 to many scenerio, instead of only take the last element for comparsion, we compare the runtime output sharing the same size and dtype with the aot one to have the best comparsion.

Reviewed By: GregoryComer

Differential Revision: D91201882
@meta-codesync meta-codesync bot merged commit c7c4073 into pytorch:main Jan 23, 2026
146 of 147 checks passed
@Gasoonjia
Copy link
Contributor Author

@pytorchbot cherry-pick --onto release/1.1 -c fixnewfeature

@pytorchbot
Copy link
Collaborator

Cherry picking #16763

The cherry pick PR is at #16813 and it is recommended to link a fixnewfeature cherry pick PR with an issue. The following tracker issues are updated:

Details for Dev Infra team Raised by workflow job

pytorchbot pushed a commit that referenced this pull request Jan 23, 2026
Differential Revision: D91201882

Pull Request resolved: #16763

(cherry picked from commit c7c4073)
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 meta-exported

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants