Revert D23753711: [pytorch][PR] Add foreach APIs for binary ops with ScalarList

Test Plan: revert-hammer

Differential Revision:
D23753711 (71d1b5b0e2)

Original commit changeset: bf3e8c54bc07

fbshipit-source-id: 192692e0d3fff4cade9983db0a1760fedfc9674c
This commit is contained in:
Xinyu Li
2020-09-24 11:53:58 -07:00
committed by Facebook GitHub Bot
parent c79d493096
commit 26001a2334
15 changed files with 104 additions and 828 deletions

View File

@ -58,7 +58,7 @@ class TestNativeFunctions(TestCase):
self.do_test_optional_floatlist_with_module(fake_module)
def test_optional_floatlist_invalid(self):
with self.assertRaisesRegex(TypeError, "must be tuple of floats, not list"):
with self.assertRaisesRegex(TypeError, "must be .* but found"):
FloatListWrapperModule()(torch.zeros(1), ["hi"])
with self.assertRaisesRegex(RuntimeError, "value of type .* instead found type"):