Skip to content

Conversation

laithsakka
Copy link
Contributor

@laithsakka laithsakka commented Feb 8, 2025

Stack from ghstack (oldest at bottom):

Unfortuanlty could not create a local repo, or unit test.
fix #146686

Copy link

pytorch-bot bot commented Feb 8, 2025

🔗 Helpful Links

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

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

✅ No Failures

As of commit 653709a with merge base 5d675de (image):
💚 Looks good so far! There are no failures yet. 💚

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

laithsakka added a commit that referenced this pull request Feb 8, 2025
ghstack-source-id: 1e948df
Pull Request resolved: #146752
@laithsakka laithsakka added the topic: not user facing topic category label Feb 8, 2025
Copy link
Contributor

@bobrenjc93 bobrenjc93 left a comment

Choose a reason for hiding this comment

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

Can't you write a unit test that calls estimate_runtime with a fabricated node? We do this type of testing a lot in dynamic shapes.

Copy link
Contributor

@bdhirsh bdhirsh left a comment

Choose a reason for hiding this comment

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

did you not have any luck tweaking my example to get a repro? I also found creating a repro for my case to be annoying because the partitioner "recompute" logic only fires in certain cases, so it took some time to figure out (code: https://github.com/pytorch/pytorch/pull/144097/files#diff-4c82a5798a61d4cceb176b2700ba6fdd7c3e72d575b8e7e22458589139459caaR5778)

@laithsakka
Copy link
Contributor Author

laithsakka commented Feb 11, 2025

did you not have any luck tweaking my example to get a repro? I also found creating a repro for my case to be annoying because the partitioner "recompute" logic only fires in certain cases, so it took some time to figure out (code: https://github.com/pytorch/pytorch/pull/144097/files#diff-4c82a5798a61d4cceb176b2700ba6fdd7c3e72d575b8e7e22458589139459caaR5778)

I tried , but was not able to trigger is_continuous to be called on top of it? if you have thoughts lmk.

@laithsakka
Copy link
Contributor Author

Can't you write a unit test that calls estimate_runtime with a fabricated node? We do this type of testing a lot in dynamic shapes.

idk how easy that would be, but if we are going that path i can just factor out the realize logic in a function and call it realize_symbols (tensor)->tensor
and test

Unfortuanlty could not create a local repo, or unit test.
fix #146686



[ghstack-poisoned]
Unfortuanlty could not create a local repo, or unit test.
fix #146686



[ghstack-poisoned]
Unfortuanlty could not create a local repo, or unit test.
fix #146686



[ghstack-poisoned]
laithsakka added a commit that referenced this pull request Feb 18, 2025
ghstack-source-id: ce6f20a
Pull Request resolved: #146752
@laithsakka
Copy link
Contributor Author

add unit test

@laithsakka
Copy link
Contributor Author

@pytorchbot merge

@pytorch-bot pytorch-bot bot added the ciflow/trunk Trigger trunk jobs on your pull request label Feb 19, 2025
@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

Comment on lines +1462 to +1463
print(shape)
print(stride)
Copy link
Contributor

Choose a reason for hiding this comment

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

can we remove these prints?

Copy link
Contributor

Choose a reason for hiding this comment

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

PR'd: #147749

@github-actions github-actions bot deleted the gh/laithsakka/107/head branch March 27, 2025 02:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/inductor ciflow/trunk Trigger trunk jobs on your pull request Merged topic: not user facing topic category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants