Skip to content

Refactor foreach pointwise ops tests to use OpInfo#51060

Closed
izdeby wants to merge 26 commits intogh/izdeby/77/basefrom
gh/izdeby/77/head
Closed

Refactor foreach pointwise ops tests to use OpInfo#51060
izdeby wants to merge 26 commits intogh/izdeby/77/basefrom
gh/izdeby/77/head

Conversation

@izdeby
Copy link
Copy Markdown
Contributor

@izdeby izdeby commented Jan 25, 2021

Stack from ghstack:


Refactor foreach pointwise ops tests to use OpInfo

Differential Revision: D26103908

@facebook-github-bot
Copy link
Copy Markdown
Contributor

facebook-github-bot commented Jan 25, 2021

💊 CI failures summary and remediations

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


  • 2/2 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 CircleCI build pytorch_linux_xenial_py3_6_gcc5_4_test (1/1)

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

Mar 19 00:21:24 [E request_callback_no_python.cpp:656] Received error while processing request type 256: The following operation failed in the TorchScript interpreter.
Mar 19 00:21:24 [E request_callback_no_python.cpp:656] Received error while processing request type 256: The following operation failed in the TorchScript interpreter.
Mar 19 00:21:24 Traceback of TorchScript (most recent call last):
Mar 19 00:21:24   File "/opt/conda/lib/python3.6/site-packages/torch/testing/_internal/distributed/rpc/jit/rpc_test.py", line 826, in run_ref_script_module
Mar 19 00:21:24     ref_script_module: RRef[MyModuleInterface], t: Tensor
Mar 19 00:21:24 ) -> Tensor:
Mar 19 00:21:24     module = ref_script_module.to_here()
Mar 19 00:21:24              ~~~~~~~~~~~~~~~~~~~~~~~~~ <--- HERE
Mar 19 00:21:24     return module.forward() + t
Mar 19 00:21:24 RuntimeError: UserRRef(rref_id=GloballyUniqueId(created_on=2, local_id=0), fork_id=GloballyUniqueId(created_on=2, local_id=3)) is an RRef to a ScriptModule. It can't be sent through RPC from owner, WorkerInfo(id=3, name=worker3), to user, WorkerInfo(id=2, name=worker2).
Mar 19 00:21:24 
Mar 19 00:21:24 [E request_callback_no_python.cpp:656] Received error while processing request type 256: The following operation failed in the TorchScript interpreter.
Mar 19 00:21:24 Traceback of TorchScript (most recent call last):
Mar 19 00:21:24   File "/opt/conda/lib/python3.6/site-packages/torch/testing/_internal/distributed/rpc/jit/rpc_test.py", line 826, in run_ref_script_module
Mar 19 00:21:24     ref_script_module: RRef[MyModuleInterface], t: Tensor
Mar 19 00:21:24 ) -> Tensor:
Mar 19 00:21:24     module = ref_script_module.to_here()
Mar 19 00:21:24              ~~~~~~~~~~~~~~~~~~~~~~~~~ <--- HERE
Mar 19 00:21:24     return module.forward() + t
Mar 19 00:21:24 RuntimeError: UserRRef(rref_id=GloballyUniqueId(created_on=1, local_id=0), fork_id=GloballyUniqueId(created_on=1, local_id=3)) is an RRef to a ScriptModule. It can't be sent through RPC from owner, WorkerInfo(id=2, name=worker2), to user, WorkerInfo(id=1, name=worker1).
Mar 19 00:21:24 
Mar 19 00:21:24 ok (2.448s)

1 failure not recognized by patterns:

Job Step Action
GitHub Actions flake8-py3 Add annotations 🔁 rerun

1 job timed out:

  • pytorch_linux_xenial_py3_6_gcc5_4_test

This comment was automatically generated by Dr. CI (expand for details).Follow this link to opt-out of these comments for your Pull Requests.

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

@izdeby izdeby mentioned this pull request Jan 26, 2021
@izdeby izdeby changed the title refactor foreach pointwise ops tests to use OpInfo Refactor foreach pointwise ops tests to use OpInfo Jan 26, 2021
-------
Refactor foreach pointwise ops tests to use OpInfo

[ghstack-poisoned]
-------
Refactor foreach pointwise ops tests to use OpInfo

[ghstack-poisoned]
@izdeby izdeby requested review from gchanan, mruberry, ngimel and zou3519 and removed request for zou3519 January 27, 2021 15:26
-------
Refactor foreach pointwise ops tests to use OpInfo

[ghstack-poisoned]
method=torch._foreach_addcmul,
inplace=torch._foreach_addcmul_,
ref=torch.addcmul,
dtypes=all_types(),
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

@ngimel had an interesting idea that these could acquire their dtypes from the reference operation's OpInfo, at least when that OpInfo exists. For example, the OpInfo for asin can be acquired by matching reference and the .op attribute of the OpInfo.

Iurii Zdebskyi added 2 commits January 29, 2021 09:22
-------
Refactor foreach pointwise ops tests to use OpInfo

Differential Revision: [D26103908](https://our.internmc.facebook.com/intern/diff/D26103908)

[ghstack-poisoned]
-------
Refactor foreach pointwise ops tests to use OpInfo

Differential Revision: [D26103908](https://our.internmc.facebook.com/intern/diff/D26103908)

[ghstack-poisoned]
-------
Refactor foreach pointwise ops tests to use OpInfo

Differential Revision: [D26103908](https://our.internmc.facebook.com/intern/diff/D26103908)

[ghstack-poisoned]
izdeby pushed a commit that referenced this pull request Feb 4, 2021
ghstack-source-id: d99404d
Pull Request resolved: #51060
-------
Refactor foreach pointwise ops tests to use OpInfo

Differential Revision: [D26103908](https://our.internmc.facebook.com/intern/diff/D26103908)

[ghstack-poisoned]
-------
Refactor foreach pointwise ops tests to use OpInfo

Differential Revision: [D26103908](https://our.internmc.facebook.com/intern/diff/D26103908)

[ghstack-poisoned]
Iurii Zdebskyi and others added 14 commits February 18, 2021 12:15
-------
Refactor foreach pointwise ops tests to use OpInfo

Differential Revision: [D26103908](https://our.internmc.facebook.com/intern/diff/D26103908)

[ghstack-poisoned]
-------
Refactor foreach pointwise ops tests to use OpInfo

Differential Revision: [D26103908](https://our.internmc.facebook.com/intern/diff/D26103908)

[ghstack-poisoned]
-------
Refactor foreach pointwise ops tests to use OpInfo

Differential Revision: [D26103908](https://our.internmc.facebook.com/intern/diff/D26103908)

[ghstack-poisoned]
-------
Refactor foreach pointwise ops tests to use OpInfo

Differential Revision: [D26103908](https://our.internmc.facebook.com/intern/diff/D26103908)

[ghstack-poisoned]
-------
Refactor foreach pointwise ops tests to use OpInfo

Differential Revision: [D26103908](https://our.internmc.facebook.com/intern/diff/D26103908)

[ghstack-poisoned]
-------
Refactor foreach pointwise ops tests to use OpInfo

Differential Revision: [D26103908](https://our.internmc.facebook.com/intern/diff/D26103908)

[ghstack-poisoned]
-------
Refactor foreach pointwise ops tests to use OpInfo

Differential Revision: [D26103908](https://our.internmc.facebook.com/intern/diff/D26103908)

[ghstack-poisoned]
-------
Refactor foreach pointwise ops tests to use OpInfo

Differential Revision: [D26103908](https://our.internmc.facebook.com/intern/diff/D26103908)

[ghstack-poisoned]
-------
Refactor foreach pointwise ops tests to use OpInfo

Differential Revision: [D26103908](https://our.internmc.facebook.com/intern/diff/D26103908)

[ghstack-poisoned]
-------
Refactor foreach pointwise ops tests to use OpInfo

Differential Revision: [D26103908](https://our.internmc.facebook.com/intern/diff/D26103908)

[ghstack-poisoned]
-------
Refactor foreach pointwise ops tests to use OpInfo

Differential Revision: [D26103908](https://our.internmc.facebook.com/intern/diff/D26103908)

[ghstack-poisoned]
-------
Refactor foreach pointwise ops tests to use OpInfo

Differential Revision: [D26103908](https://our.internmc.facebook.com/intern/diff/D26103908)

[ghstack-poisoned]
-------
Refactor foreach pointwise ops tests to use OpInfo

Differential Revision: [D26103908](https://our.internmc.facebook.com/intern/diff/D26103908)

[ghstack-poisoned]
-------
Refactor foreach pointwise ops tests to use OpInfo

Differential Revision: [D26103908](https://our.internmc.facebook.com/intern/diff/D26103908)

[ghstack-poisoned]
@facebook-github-bot
Copy link
Copy Markdown
Contributor

Hi @izdeby!

Thank you for your pull request.

We require contributors to sign our Contributor License Agreement, and yours needs attention.

You currently have a record in our system, but the CLA is no longer valid, and will need to be resubmitted.

Process

In order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA.

Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with CLA signed. The tagging process may take up to 1 hour after signing. Please give it that time before contacting us about it.

If you have received this in error or have any questions, please contact us at cla@fb.com. Thanks!

@ngimel ngimel removed their request for review May 30, 2021 23:40
@zou3519 zou3519 removed their request for review June 28, 2021 13:31
@github-actions github-actions bot closed this May 12, 2022
@facebook-github-bot facebook-github-bot deleted the gh/izdeby/77/head branch June 11, 2022 14:18
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.

4 participants