Skip to content

add non-kwarg device and _like constructors#78536

Closed
eellison wants to merge 8 commits intogh/eellison/303/basefrom
gh/eellison/303/head
Closed

add non-kwarg device and _like constructors#78536
eellison wants to merge 8 commits intogh/eellison/303/basefrom
gh/eellison/303/head

Conversation

@facebook-github-bot
Copy link
Contributor

facebook-github-bot commented May 31, 2022

🔗 Helpful links

❌ 1 New Failures

As of commit 860b902 (more details on the Dr. CI page):

Expand to see more
  • 1/1 failures introduced in this PR

🕵️ 1 new failure recognized by patterns

The following CI failures do not appear to be due to upstream breakages

See GitHub Actions build pull / linux-focal-py3.7-gcc7 / test (backwards_compat, 1, 1, linux.2xlarge) (1/1)

Step: "Test" (full log | diagnosis details | 🔁 rerun)

2022-06-07T16:32:27.5328763Z The PR is introduc...m to confirm whether this change is wanted or not.
2022-06-07T16:32:27.5315475Z processing existing schema:  text(__torch__.torch.classes.profiling.SourceRef _0) -> str _0
2022-06-07T16:32:27.5317716Z processing existing schema:  count(__torch__.torch.classes.profiling.InstructionStats _0) -> int _0
2022-06-07T16:32:27.5318194Z processing existing schema:  duration_ns(__torch__.torch.classes.profiling.InstructionStats _0) -> int _0
2022-06-07T16:32:27.5319847Z processing existing schema:  source(__torch__.torch.classes.profiling.SourceStats _0) -> __torch__.torch.classes.profiling.SourceRef _0
2022-06-07T16:32:27.5321671Z processing existing schema:  line_map(__torch__.torch.classes.profiling.SourceStats _0) -> Dict(int, __torch__.torch.classes.profiling.InstructionStats) _0
2022-06-07T16:32:27.5323029Z processing existing schema:  __init__(__torch__.torch.classes.profiling._ScriptProfile _0) -> NoneType _0
2022-06-07T16:32:27.5324192Z processing existing schema:  enable(__torch__.torch.classes.profiling._ScriptProfile _0) -> NoneType _0
2022-06-07T16:32:27.5326235Z processing existing schema:  disable(__torch__.torch.classes.profiling._ScriptProfile _0) -> NoneType _0
2022-06-07T16:32:27.5327256Z processing existing schema:  _dump_stats(__torch__.torch.classes.profiling._ScriptProfile _0) -> __torch__.torch.classes.profiling.SourceStats[] _0
2022-06-07T16:32:27.5328447Z processing existing schema:  __init__(__torch__.torch.classes.dist_rpc.WorkerInfo _0, str _1, int _2) -> NoneType _0
2022-06-07T16:32:27.5328763Z The PR is introducing backward incompatible changes to the operator library. Please contact PyTorch team to confirm whether this change is wanted or not. 
2022-06-07T16:32:27.5328778Z 
2022-06-07T16:32:27.5328855Z Broken ops: [
2022-06-07T16:32:27.5328996Z 	prim::is_cpu(Tensor a) -> bool
2022-06-07T16:32:27.5329257Z 	init2(__torch__.torch.classes._nnapi.Compilation _0, Tensor _1, Tensor[] _2, int _3, bool _4) -> NoneType _0
2022-06-07T16:32:27.5329306Z ]
2022-06-07T16:32:27.6574397Z + cleanup
2022-06-07T16:32:27.6574545Z + retcode=1
2022-06-07T16:32:27.6574682Z + set +x
2022-06-07T16:32:27.6610824Z ##[error]Process completed with exit code 1.
2022-06-07T16:32:27.6650693Z ##[group]Run pytorch/pytorch/.github/actions/get-workflow-job-id@master

This comment was automatically generated by Dr. CI (expand for details).

Please report bugs/suggestions to the (internal) Dr. CI Users group.

Click here to manually regenerate this comment.

Adds a few more special cases. 

[ghstack-poisoned]
aten.randint_like.low_dtype,
aten.randn_like.default,
aten.zeros_like.default,
)
Copy link
Contributor

Choose a reason for hiding this comment

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

This should be an operator tag cc @anjali411

out_device = new_kwargs.pop("device", torch.device("cpu"))
if func in _like_tensor_constructors:
default_device = new_kwargs["input"].device
# TODO: file issue
Copy link
Contributor

Choose a reason for hiding this comment

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

?

if func in _like_tensor_constructors:
default_device = new_kwargs["input"].device
# TODO: file issue
args = (new_kwargs.pop("input"),)
Copy link
Contributor

Choose a reason for hiding this comment

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

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]
eellison added 4 commits June 2, 2022 07:16
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]
@eellison
Copy link
Contributor Author

eellison commented Jun 7, 2022

@pytorchbot merge this please

@pytorch-bot
Copy link

pytorch-bot bot commented Jun 7, 2022

❌ 🤖 pytorchbot command failed:

@pytorchbot: error: unrecognized arguments: this please

usage: @pytorchbot {merge,revert,rebase,help} ...

Try @pytorchbot help for more info.

@eellison
Copy link
Contributor Author

eellison commented Jun 7, 2022

@pytorchbot merge

@pytorchmergebot
Copy link
Collaborator

@pytorchbot successfully started a merge job. Check the current status here

@github-actions
Copy link
Contributor

github-actions bot commented Jun 7, 2022

Hey @eellison.
You've committed this PR, but it does not have both a 'release notes: ...' and 'topics: ...' label. Please add one of each to the PR. The 'release notes: ...' label should represent the part of PyTorch that this PR changes (fx, autograd, distributed, etc) and the 'topics: ...' label should represent the kind of PR it is (not user facing, new feature, bug fix, perf improvement, etc). The list of valid labels can be found here for the 'release notes: ...' and here for the 'topics: ...'.
For changes that are 'topic: not user facing' there is no need for a release notes label.

@janeyx99
Copy link
Contributor

janeyx99 commented Jun 7, 2022

@pytorchbot revert -m "Broke meta tests on trunk and on PR https://github.com/pytorch/pytorch/runs/6765692797?check_suite_focus=true" -c ignoredsignal

@pytorchmergebot
Copy link
Collaborator

@pytorchbot successfully started a revert job. Check the current status here

pytorchmergebot added a commit that referenced this pull request Jun 7, 2022
@eellison eellison reopened this Jun 7, 2022
Adds a few more special cases. 

[ghstack-poisoned]
@eellison eellison removed the Reverted label Jun 7, 2022
facebook-github-bot pushed a commit that referenced this pull request Jun 7, 2022
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
@eellison
Copy link
Contributor Author

eellison commented Jun 7, 2022

@pyotrchbot merge this

@eellison
Copy link
Contributor Author

eellison commented Jun 7, 2022

@pytorchbot merge this

@pytorch-bot
Copy link

pytorch-bot bot commented Jun 7, 2022

❌ 🤖 pytorchbot command failed:

@pytorchbot: error: unrecognized arguments: this

usage: @pytorchbot {merge,revert,rebase,help} ...

Try @pytorchbot help for more info.

@eellison
Copy link
Contributor Author

eellison commented Jun 7, 2022

@pytorchbot merge

@pytorchmergebot
Copy link
Collaborator

@pytorchbot successfully started a merge job. Check the current status here

@github-actions
Copy link
Contributor

github-actions bot commented Jun 7, 2022

Hey @eellison.
You've committed this PR, but it does not have both a 'release notes: ...' and 'topics: ...' label. Please add one of each to the PR. The 'release notes: ...' label should represent the part of PyTorch that this PR changes (fx, autograd, distributed, etc) and the 'topics: ...' label should represent the kind of PR it is (not user facing, new feature, bug fix, perf improvement, etc). The list of valid labels can be found here for the 'release notes: ...' and here for the 'topics: ...'.
For changes that are 'topic: not user facing' there is no need for a release notes label.

facebook-github-bot pushed a commit that referenced this pull request Jun 8, 2022
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
facebook-github-bot pushed a commit that referenced this pull request Jun 8, 2022
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
@facebook-github-bot facebook-github-bot deleted the gh/eellison/303/head branch June 11, 2022 14:17
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.

5 participants