Update foreach APIs to use scalar lists#48223
Update foreach APIs to use scalar lists#48223izdeby wants to merge 29 commits intogh/izdeby/67/basefrom
Conversation
[ghstack-poisoned]
💊 CI failures summary and remediationsAs of commit 2a95c20 (more details on the Dr. CI page):
❄️ 1 failure tentatively classified as flakybut reruns have not yet been triggered to confirm:
|
Differential Revision: [D25074763](https://our.internmc.facebook.com/intern/diff/D25074763) [ghstack-poisoned]
Differential Revision: [D25074763](https://our.internmc.facebook.com/intern/diff/D25074763) [ghstack-poisoned]
Differential Revision: [D25074763](https://our.internmc.facebook.com/intern/diff/D25074763) **Motivation** Update existing _foreach APIs to use ScalarList instead of at::ArrayRef<double> **Testing** Update the tests assuming that any scalar type can be passed now, not just double. [ghstack-poisoned]
Differential Revision: [D25074763](https://our.internmc.facebook.com/intern/diff/D25074763) **Motivation** Update existing _foreach APIs to use ScalarList instead of at::ArrayRef<double> **Testing** Update the tests assuming that any scalar type can be passed now, not just double. [ghstack-poisoned]
Differential Revision: [D25074763](https://our.internmc.facebook.com/intern/diff/D25074763) **Motivation** Update existing _foreach APIs to use ScalarList instead of at::ArrayRef<double> **Testing** Update the tests assuming that any scalar type can be passed now, not just double. [ghstack-poisoned]
Differential Revision: [D25074763](https://our.internmc.facebook.com/intern/diff/D25074763) **Motivation** Update existing _foreach APIs to use ScalarList instead of at::ArrayRef<double> **Testing** Update the tests assuming that any scalar type can be passed now, not just double. [ghstack-poisoned]
| self.assertEqual(res, expected) | ||
|
|
||
| foreach_bin_op_(tensors, scalars) | ||
| self.assertEqual(res, tensors) |
There was a problem hiding this comment.
Some general feedback is: the tests are really hard to read because they branch so much. I'm not sure how to make them easier to read, though. Perhaps we should consider splitting them up or think about why the behavior diverges so much?
There was a problem hiding this comment.
Yes, i fully agree. thats why in the next PR in this stack i separate all the tests. Much easier to read and maintain.
Differential Revision: [D25074763](https://our.internmc.facebook.com/intern/diff/D25074763) **Motivation** Update existing _foreach APIs to use ScalarList instead of at::ArrayRef<double> **Testing** Update the tests assuming that any scalar type can be passed now, not just double. [ghstack-poisoned]
Differential Revision: [D25074763](https://our.internmc.facebook.com/intern/diff/D25074763) **Motivation** Update existing _foreach APIs to use ScalarList instead of at::ArrayRef<double> **Testing** Update the tests assuming that any scalar type can be passed now, not just double. [ghstack-poisoned]
Differential Revision: [D25074763](https://our.internmc.facebook.com/intern/diff/D25074763) **Motivation** Update existing _foreach APIs to use ScalarList instead of at::ArrayRef<double> **Testing** Update the tests assuming that any scalar type can be passed now, not just double. [ghstack-poisoned]
Differential Revision: [D25074763](https://our.internmc.facebook.com/intern/diff/D25074763) **Motivation** Update existing _foreach APIs to use ScalarList instead of at::ArrayRef<double> **Testing** Update the tests assuming that any scalar type can be passed now, not just double. [ghstack-poisoned]
Differential Revision: [D25074763](https://our.internmc.facebook.com/intern/diff/D25074763) **Motivation** Update existing _foreach APIs to use ScalarList instead of at::ArrayRef<double> **Testing** Update the tests assuming that any scalar type can be passed now, not just double. [ghstack-poisoned]
Differential Revision: [D25074763](https://our.internmc.facebook.com/intern/diff/D25074763) **Motivation** Update existing _foreach APIs to use ScalarList instead of at::ArrayRef<double> **Testing** Update the tests assuming that any scalar type can be passed now, not just double. [ghstack-poisoned]
Differential Revision: [D25074763](https://our.internmc.facebook.com/intern/diff/D25074763) **Motivation** Update existing _foreach APIs to use ScalarList instead of at::ArrayRef<double> **Testing** Update the tests assuming that any scalar type can be passed now, not just double. [ghstack-poisoned]
Differential Revision: [D25074763](https://our.internmc.facebook.com/intern/diff/D25074763) **Motivation** Update existing _foreach APIs to use ScalarList instead of at::ArrayRef<double> **Testing** Update the tests assuming that any scalar type can be passed now, not just double. [ghstack-poisoned]
Differential Revision: [D25074763](https://our.internmc.facebook.com/intern/diff/D25074763) **Motivation** Update existing _foreach APIs to use ScalarList instead of at::ArrayRef<double> **Testing** Update the tests assuming that any scalar type can be passed now, not just double. [ghstack-poisoned]
Differential Revision: [D25074763](https://our.internmc.facebook.com/intern/diff/D25074763) **Motivation** Update existing _foreach APIs to use ScalarList instead of at::ArrayRef<double> **Testing** Update the tests assuming that any scalar type can be passed now, not just double. [ghstack-poisoned]
Differential Revision: [D25074763](https://our.internmc.facebook.com/intern/diff/D25074763) **Motivation** Update existing _foreach APIs to use ScalarList instead of at::ArrayRef<double> **Testing** Update the tests assuming that any scalar type can be passed now, not just double. [ghstack-poisoned]
Differential Revision: [D25074763](https://our.internmc.facebook.com/intern/diff/D25074763) **Motivation** Update existing _foreach APIs to use ScalarList instead of at::ArrayRef<double> **Testing** Update the tests assuming that any scalar type can be passed now, not just double. [ghstack-poisoned]
|
I see errors on master after this pull request landed, see history. Can we confirm the errors are not related to this PR?
Example: |
|
I've reverted this PR, there's IMA failure in this PR's CI, and master is currently broken. |
|
This pull request has been reverted by 443a431. |
Stack from ghstack:
Differential Revision: D25074763
Motivation
Update existing _foreach APIs to use ScalarList instead of at::ArrayRef
Testing
Update the tests assuming that any scalar type can be passed now, not just double.