Skip to content

Conversation

@blzheng
Copy link
Collaborator

@blzheng blzheng commented Mar 28, 2023

@pytorch-bot
Copy link

pytorch-bot bot commented Mar 28, 2023

🔗 Helpful Links

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

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

✅ No Failures

As of commit 26879ef:
💚 Looks good so far! There are no failures yet. 💚

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

cc soumith voznesenskym penguinwu anijain2305 EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe Xia-Weiwen wenzhe-nrv jiayisunx peterbell10 desertfire

[ghstack-poisoned]
cc soumith voznesenskym penguinwu anijain2305 EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe Xia-Weiwen wenzhe-nrv jiayisunx peterbell10 desertfire

[ghstack-poisoned]
cc soumith voznesenskym penguinwu anijain2305 EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe Xia-Weiwen wenzhe-nrv jiayisunx peterbell10 desertfire

[ghstack-poisoned]
blzheng added a commit that referenced this pull request Mar 28, 2023
ghstack-source-id: aeda4f3
Pull Request resolved: #97756
@blzheng blzheng requested a review from jgong5 March 31, 2023 04:22
with self.assertRaises(RuntimeError):
torch.compile(fn)(a)

def test_getitem(self):
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is it common for both CPU and GPU? If it is common, can you move it outside of CPU repro?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done.

cc soumith voznesenskym penguinwu anijain2305 EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe Xia-Weiwen wenzhe-nrv jiayisunx peterbell10 desertfire

[ghstack-poisoned]
blzheng added a commit that referenced this pull request Mar 31, 2023
ghstack-source-id: 6cd8d75
Pull Request resolved: #97756
@blzheng blzheng requested a review from jgong5 April 3, 2023 01:04
@blzheng blzheng requested a review from jansel April 3, 2023 01:20
from .tensor import SymNodeVariable

if isinstance(arg, SymNodeVariable):
index = arg.sym_num
Copy link
Contributor

Choose a reason for hiding this comment

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

@ezyang is this right way to trigger a guard_as_constant on a symint?

Copy link
Contributor

Choose a reason for hiding this comment

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

No, but it works out in the end because self.items[index] will call __index__ which will force a guard. You can use arg.evaluate_expr() (idk why it takes an output graph arg, delete that arg lol)

@blzheng
Copy link
Collaborator Author

blzheng commented Apr 4, 2023

@pytorchbot merge

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

@facebook-github-bot facebook-github-bot deleted the gh/blzheng/7/head branch June 8, 2023 15:50
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.

7 participants