add non-kwarg device and _like constructors#78536
add non-kwarg device and _like constructors#78536eellison wants to merge 8 commits intogh/eellison/303/basefrom
Conversation
[ghstack-poisoned]
🔗 Helpful links
❌ 1 New FailuresAs of commit 860b902 (more details on the Dr. CI page): Expand to see more
🕵️ 1 new failure recognized by patternsThe following CI failures do not appear to be due to upstream breakages
|
Adds a few more special cases. [ghstack-poisoned]
| aten.randint_like.low_dtype, | ||
| aten.randn_like.default, | ||
| aten.zeros_like.default, | ||
| ) |
| out_device = new_kwargs.pop("device", torch.device("cpu")) | ||
| if func in _like_tensor_constructors: | ||
| default_device = new_kwargs["input"].device | ||
| # TODO: file issue |
| if func in _like_tensor_constructors: | ||
| default_device = new_kwargs["input"].device | ||
| # TODO: file issue | ||
| args = (new_kwargs.pop("input"),) |
There was a problem hiding this comment.
This is kind of confusing because you did a normalize to turn everything into kwargs and now you're overwriting args. I did a double take thinking we were missing args but it turns out you're not
Adds a few more special cases. [ghstack-poisoned]
Adds a few more special cases. [ghstack-poisoned]
Adds a few more special cases. [ghstack-poisoned]
Adds a few more special cases. [ghstack-poisoned]
Adds a few more special cases. [ghstack-poisoned]
|
@pytorchbot merge this please |
|
❌ 🤖 pytorchbot command failed: Try |
|
@pytorchbot merge |
|
@pytorchbot successfully started a merge job. Check the current status here |
|
Hey @eellison. |
|
@pytorchbot revert -m "Broke meta tests on trunk and on PR https://github.com/pytorch/pytorch/runs/6765692797?check_suite_focus=true" -c ignoredsignal |
|
@pytorchbot successfully started a revert job. Check the current status here |
This reverts commit 44937da. Reverted #78536 on behalf of https://github.com/janeyx99 due to Broke meta tests on trunk and on PR https://github.com/pytorch/pytorch/runs/6765692797?check_suite_focus=true
Adds a few more special cases. [ghstack-poisoned]
Summary: Pull Request resolved: #78536 Approved by: https://github.com/ezyang Test Plan: contbuild & OSS CI, see https://hud.pytorch.org/commit/pytorch/pytorch/44937da6dbb1eb44b71abffb9492d53a126fb9b4 Reviewed By: osalpekar Differential Revision: D36959398 Pulled By: eellison fbshipit-source-id: 5595e71cf3b7dfbf46865a80db37f905b6e9f59e
|
@pyotrchbot merge this |
|
@pytorchbot merge this |
|
❌ 🤖 pytorchbot command failed: Try |
|
@pytorchbot merge |
|
@pytorchbot successfully started a merge job. Check the current status here |
|
Hey @eellison. |
Summary: This reverts commit 44937da. Reverted #78536 on behalf of https://github.com/janeyx99 due to Broke meta tests on trunk and on PR https://github.com/pytorch/pytorch/runs/6765692797?check_suite_focus=true Test Plan: contbuild & OSS CI, see https://hud.pytorch.org/commit/pytorch/pytorch/0df77f320f249e87824c6b5bc64e5105a662d831 Reviewed By: osalpekar Differential Revision: D36981257 fbshipit-source-id: 9a6d3baf76e88c0a0d4b0aacaae7370718c782e6
Summary: Pull Request resolved: #78536 Approved by: https://github.com/ezyang Test Plan: contbuild & OSS CI, see https://hud.pytorch.org/commit/pytorch/pytorch/a711ce4a2a520a8ecd809a8e194816a3454e9108 Reviewed By: osalpekar Differential Revision: D36993265 Pulled By: eellison fbshipit-source-id: f17ff127fef213af2ea3ca2e0709c996bd5858a0
Stack from ghstack (oldest at bottom):
Adds a few more special cases.