mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-21 05:34:18 +08:00
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:
committed by
Facebook GitHub Bot
parent
c79d493096
commit
26001a2334
@ -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"):
|
||||
|
Reference in New Issue
Block a user