[WIP] Support broadcasting via slow path#52448
[WIP] Support broadcasting via slow path#52448izdeby wants to merge 18 commits intogh/izdeby/87/basefrom
Conversation
[ghstack-poisoned]
💊 CI failures summary and remediationsAs of commit d370e27 (more details on the Dr. CI page):
🕵️ 7 new failures recognized by patternsThe following CI failures do not appear to be due to upstream breakages:
|
| Job | Step | Action |
|---|---|---|
| Fail if there were any warnings | 🔁 rerun | |
| Ensure no trailing spaces | 🔁 rerun |
ci.pytorch.org: 1 failed
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.
Differential Revision: [D26520922](https://our.internmc.facebook.com/intern/diff/D26520922) [ghstack-poisoned]
Differential Revision: [D26520922](https://our.internmc.facebook.com/intern/diff/D26520922) [ghstack-poisoned]
Differential Revision: [D26520922](https://our.internmc.facebook.com/intern/diff/D26520922) [ghstack-poisoned]
Differential Revision: [D26520922](https://our.internmc.facebook.com/intern/diff/D26520922) [ghstack-poisoned]
Differential Revision: [D26520922](https://our.internmc.facebook.com/intern/diff/D26520922) [ghstack-poisoned]
Differential Revision: [D26520922](https://our.internmc.facebook.com/intern/diff/D26520922) [ghstack-poisoned]
Differential Revision: [D26520922](https://our.internmc.facebook.com/intern/diff/D26520922) [ghstack-poisoned]
Differential Revision: [D26520922](https://our.internmc.facebook.com/intern/diff/D26520922) [ghstack-poisoned]
Differential Revision: [D26520922](https://our.internmc.facebook.com/intern/diff/D26520922) [ghstack-poisoned]
Differential Revision: [D26520922](https://our.internmc.facebook.com/intern/diff/D26520922) [ghstack-poisoned]
Differential Revision: [D26520922](https://our.internmc.facebook.com/intern/diff/D26520922) [ghstack-poisoned]
Differential Revision: [D26520922](https://our.internmc.facebook.com/intern/diff/D26520922) [ghstack-poisoned]
Differential Revision: [D26520922](https://our.internmc.facebook.com/intern/diff/D26520922) [ghstack-poisoned]
Differential Revision: [D26520922](https://our.internmc.facebook.com/intern/diff/D26520922) [ghstack-poisoned]
Differential Revision: [D26520922](https://our.internmc.facebook.com/intern/diff/D26520922) [ghstack-poisoned]
Differential Revision: [D26520922](https://our.internmc.facebook.com/intern/diff/D26520922) [ghstack-poisoned]
Differential Revision: [D26520922](https://our.internmc.facebook.com/intern/diff/D26520922) [ghstack-poisoned]
|
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. ProcessIn 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 If you have received this in error or have any questions, please contact us at cla@fb.com. Thanks! |
Summary: This is based on #48224. To make `foreach` more flexible, this PR pushes unsupported cases to slow path. Also, this adds some tests to verify that - `foreach` functions work with tensors of different dtypes and/or memory layouts in 7bd4b2c - `foreach` functions work with tensors on different devices in a list, but are on the same device if the indices are the same: def4b9b Future plans: 1. Improve the coverage of unittests using `ops` decorator & updating `foreach_unary_op_db` and creating `foreach_(binary|pointwise|minmax)_db`. 2. Support broadcasting in slow path. Ref: #52448 3. Support type promotion in fast path. Ref #52449 CC: ngimel mcarilli ptrblck Pull Request resolved: #56993 Reviewed By: zou3519 Differential Revision: D28630580 Pulled By: ngimel fbshipit-source-id: e26ee74a39a591025e18c1ead48948cb7ec53c19
Summary: This is based on pytorch#48224. To make `foreach` more flexible, this PR pushes unsupported cases to slow path. Also, this adds some tests to verify that - `foreach` functions work with tensors of different dtypes and/or memory layouts in pytorch@7bd4b2c - `foreach` functions work with tensors on different devices in a list, but are on the same device if the indices are the same: pytorch@def4b9b Future plans: 1. Improve the coverage of unittests using `ops` decorator & updating `foreach_unary_op_db` and creating `foreach_(binary|pointwise|minmax)_db`. 2. Support broadcasting in slow path. Ref: pytorch#52448 3. Support type promotion in fast path. Ref pytorch#52449 CC: ngimel mcarilli ptrblck Pull Request resolved: pytorch#56993 Reviewed By: zou3519 Differential Revision: D28630580 Pulled By: ngimel fbshipit-source-id: e26ee74a39a591025e18c1ead48948cb7ec53c19
|
Looks like this PR hasn't been updated in a while so we're going to go ahead and mark this as |
Stack from ghstack:
Differential Revision: D26520922