KEMBAR78
[inductor] Replace rand[n].generator with inductor prim if generator=None by int3 · Pull Request #115051 · pytorch/pytorch · GitHub
Skip to content

Conversation

int3
Copy link
Contributor

@int3 int3 commented Dec 4, 2023

Stack from ghstack (oldest at bottom):

This fixes the "should have been handled in replace_random.py" error
raised during lowering.

I also fixed test_randn_generator to catch any regressions.
Previously, it did not use the result of randn(), so dynamo tracing
omitted that node entirely.

Fixes #114203.

cc @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @peterbell10 @ipiszy @yf225 @chenyang78 @kadeng @muchulee8 @aakhundov @ColinPeppler

…None

This fixes the "should have been handled in replace_random.py" error
raised during lowering.

I also fixed `test_randn_generator` to catch any regressions.
Previously, it did not use the result of randn(), so dynamo tracing
omitted that node entirely.

Fixes #114203.

[ghstack-poisoned]
@pytorch-bot
Copy link

pytorch-bot bot commented Dec 4, 2023

🔗 Helpful Links

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

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

✅ You can merge normally! (1 Unrelated Failure)

As of commit 9ccecc5 with merge base a70c85c (image):

FLAKY - The following job failed but was likely due to flakiness present on trunk:

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

… generator=None"

This fixes the "should have been handled in replace_random.py" error
raised during lowering.

I also fixed `test_randn_generator` to catch any regressions.
Previously, it did not use the result of randn(), so dynamo tracing
omitted that node entirely.

Fixes #114203.

cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx peterbell10 ipiszy yf225 chenyang78 kadeng muchulee8 aakhundov ColinPeppler

[ghstack-poisoned]
@int3 int3 requested review from eellison and jansel December 4, 2023 03:36
… generator=None"

This fixes the "should have been handled in replace_random.py" error
raised during lowering.

I also fixed `test_randn_generator` to catch any regressions.
Previously, it did not use the result of randn(), so dynamo tracing
omitted that node entirely.

Fixes #114203.

cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx peterbell10 ipiszy yf225 chenyang78 kadeng muchulee8 aakhundov ColinPeppler

[ghstack-poisoned]
int3 added a commit that referenced this pull request Dec 4, 2023
…None

This fixes the "should have been handled in replace_random.py" error
raised during lowering.

I also fixed `test_randn_generator` to catch any regressions.
Previously, it did not use the result of randn(), so dynamo tracing
omitted that node entirely.

Fixes #114203.

ghstack-source-id: 8a0f5f5
Pull Request resolved: #115051
@int3 int3 marked this pull request as draft December 4, 2023 16:49
@int3 int3 self-assigned this Dec 4, 2023
@int3 int3 marked this pull request as ready for review December 4, 2023 16:56
… generator=None"

This fixes the "should have been handled in replace_random.py" error
raised during lowering.

I also fixed `test_randn_generator` to catch any regressions.
Previously, it did not use the result of randn(), so dynamo tracing
omitted that node entirely.

Fixes #114203.

cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx peterbell10 ipiszy yf225 chenyang78 kadeng muchulee8 aakhundov ColinPeppler

[ghstack-poisoned]
@int3
Copy link
Contributor Author

int3 commented Dec 4, 2023

@pytorchbot merge

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

@pytorchmergebot
Copy link
Collaborator

Merge failed

Reason: 1 jobs have failed, first few of them are: inductor / cuda12.1-py3.10-gcc9-sm86 / test (inductor_distributed, 1, 1, linux.g5.12xlarge.nvidia.gpu)

Details for Dev Infra team Raised by workflow job

… generator=None"

This fixes the "should have been handled in replace_random.py" error
raised during lowering.

I also fixed `test_randn_generator` to catch any regressions.
Previously, it did not use the result of randn(), so dynamo tracing
omitted that node entirely.

Fixes #114203.

cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx peterbell10 ipiszy yf225 chenyang78 kadeng muchulee8 aakhundov ColinPeppler

[ghstack-poisoned]
int3 added a commit that referenced this pull request Dec 4, 2023
…None

This fixes the "should have been handled in replace_random.py" error
raised during lowering.

I also fixed `test_randn_generator` to catch any regressions.
Previously, it did not use the result of randn(), so dynamo tracing
omitted that node entirely.

Fixes #114203.

ghstack-source-id: e184cb5
Pull Request resolved: #115051
@int3
Copy link
Contributor Author

int3 commented Dec 4, 2023

@pytorchbot merge

@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/int3/108/head branch December 8, 2023 15:29
dmenig pushed a commit to dmenig/pytorch that referenced this pull request Dec 21, 2023
…None (pytorch#115051)

This fixes the "should have been handled in replace_random.py" error
raised during lowering.

I also fixed `test_randn_generator` to catch any regressions.
Previously, it did not use the result of randn(), so dynamo tracing
omitted that node entirely.

Fixes pytorch#114203.

Pull Request resolved: pytorch#115051
Approved by: https://github.com/eellison
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.

3 participants