Skip to content

Conversation

AutinMitra
Copy link
Contributor

@AutinMitra AutinMitra commented May 21, 2025

Summary:
Previously, when there is no discrepancy in results for block mode, net_min_base will throw an OOB error.

This occurs due to the block _block_traverse_impl returning an OOB after exhausting subgraphs all the way down to a single node

There is also an issue where we may get an unsound subgraph (i.e. mark an earlier node as the "end" even if the correct end is later). This is due to an incorrect check (start_idx == mid) where there can possibly be two values left before the program pre-maturely returns

Test Plan:
Buck UI: https://www.internalfb.com/buck2/52524c26-ace5-4593-8a4b-843a54eb206a
Test UI: https://www.internalfb.com/intern/testinfra/testrun/3096224973363310
Network: Up: 0B Down: 15MiB (reSessionID-cd404e97-395f-49fc-8381-373e90a1378f)
Executing actions. Remaining 0/1
Command: test.
Time elapsed: 53.7s
Tests finished: Pass 7. Fail 0. Fatal 0. Skip 0. Build failure 0

Differential Revision: D75143242

cc @ezyang @SherlockNoMad @EikanWang @jgong5 @wenzhe-nrv

Copy link

pytorch-bot bot commented May 21, 2025

This appears to be a diff that was exported from phabricator, but the PR author does not have sufficient permissions to run CI. @AutinMitra, please do step 2 of internal wiki to get write access so you do not need to get CI approvals in the future. If you think this is a mistake, please contact the Pytorch Dev Infra team.

Copy link

linux-foundation-easycla bot commented May 21, 2025

CLA Signed

The committers listed above are authorized under a signed CLA.

  • ✅ login: AutinMitra / name: Autin Mitra (f3cf399)

@pytorch-bot pytorch-bot bot added the release notes: fx release notes category label May 21, 2025
Copy link

pytorch-bot bot commented May 21, 2025

🔗 Helpful Links

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

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

✅ No Failures

As of commit f3cf399 with merge base 5bb156a (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
Copy link
Contributor

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

@facebook-github-bot
Copy link
Contributor

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

@pytorch-bot pytorch-bot bot added the ciflow/trunk Trigger trunk jobs on your pull request label May 22, 2025
@facebook-github-bot
Copy link
Contributor

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

@facebook-github-bot
Copy link
Contributor

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

@facebook-github-bot
Copy link
Contributor

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

pytorch#154076)

Summary:
Pull Request resolved: pytorch#154076

Previously, when there is no discrepancy in results for block mode, net_min_base will throw an OOB error.

This occurs due to the block _block_traverse_impl returning an OOB after exhausting subgraphs all the way down to a single node

There is also an issue where we may get an unsound subgraph (i.e. mark an earlier node as the "end" even if the correct end is later). This is due to an incorrect check (start_idx == mid) where there can possibly be two values left before the program pre-maturely returns

Test Plan:
buck test fbcode//caffe2/test:fx_minimizer
File changed: fbcode//caffe2/test/TARGETS
Buck UI: https://www.internalfb.com/buck2/d56adebc-a10d-477c-9b69-70d91d235c5d
Test UI: https://www.internalfb.com/intern/testinfra/testrun/11258999153892410
Network: Up: 8.4KiB  Down: 0B  (reSessionID-b82b8e89-5546-407d-a2c4-bd671dd20bfe)
Loading targets.   Remaining     0/1                                                        1335 targets declared
Analyzing targets. Remaining     0/6                                                        48 actions, 55 artifacts declared
Executing actions. Remaining     0/40                                                       2.9s exec time total
Command: test.     Finished 4 local
Time elapsed: 48.5s
Tests finished: Pass 7. Fail 0. Fatal 0. Skip 0. Build failure 0

Reviewed By: qcyuan

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

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

@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

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 Merged release notes: fx release notes category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants