Skip to content

increment pending_callbacks_counter before initation the pt2 compile callbacks#157185

Closed
burak-turk wants to merge 1 commit intopytorch:mainfrom
burak-turk:export-D77475650
Closed

increment pending_callbacks_counter before initation the pt2 compile callbacks#157185
burak-turk wants to merge 1 commit intopytorch:mainfrom
burak-turk:export-D77475650

Conversation

@burak-turk
Copy link
Contributor

@burak-turk burak-turk commented Jun 28, 2025

Summary: Since we increment the counter after performing the callback, it leads to the assertion error when callback raises an error and increment never happens. Let's increment first to avoid it.

Test Plan:
tba

Rollback Plan:

Differential Revision: D77475650

cc @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @chenyang78 @kadeng @chauhang @amjames

@pytorch-bot
Copy link

pytorch-bot bot commented Jun 28, 2025

🔗 Helpful Links

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

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

✅ No Failures

As of commit 5689698 with merge base 41f6ace (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: D77475650

@xmfan xmfan added the topic: not user facing topic category label Jun 28, 2025
burak-turk added a commit to burak-turk/pytorch that referenced this pull request Jun 28, 2025
… callbacks (pytorch#157185)

Summary:

Since we increment the counter after performing the callback, it leads to the assertion error when callback raises an error and increment never happens. Let's increment first to avoid it.

Test Plan:
tba

Rollback Plan:

Reviewed By: xmfan

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

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

@burak-turk burak-turk requested a review from xmfan June 28, 2025 14:32
@pytorch-bot pytorch-bot bot added the ciflow/trunk Trigger trunk jobs on your pull request label Jun 29, 2025
… callbacks (pytorch#157185)

Summary:
Pull Request resolved: pytorch#157185

Since we increment the counter after performing the callback, it leads to the assertion error when callback raises an error and increment never happens. Let's increment first to avoid it.

Test Plan:
tba

Rollback Plan:

Reviewed By: xmfan

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

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

@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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants