Fix BC test after TorchBind cahnges (#32429)
Summary:
It was broken by https://github.com/pytorch/pytorch/issues/32320. Let's be on the safe side and just whitelist all testing ops
Pull Request resolved: https://github.com/pytorch/pytorch/pull/32429
Differential Revision: D19501016
Pulled By: dzhulgakov
fbshipit-source-id: 9cc1d363edb4579905bee1976a2b57255ce41738
diff --git a/test/backward_compatibility/check_backward_compatibility.py b/test/backward_compatibility/check_backward_compatibility.py
index 6e9e233..96a339d 100644
--- a/test/backward_compatibility/check_backward_compatibility.py
+++ b/test/backward_compatibility/check_backward_compatibility.py
@@ -55,21 +55,11 @@
('upsample_nearest3d_backward', datetime.date(9999, 1, 1)),
('_test_optional_float', datetime.date(9999, 1, 1)),
('aten::Int', datetime.date(2020, 1, 30)),
+ # We export some functions and classes for test_jit.py directly from libtorch.so,
+ # it's not important to have BC for them
+ ('_TorchScriptTesting.*', datetime.date(9999, 1, 1)),
]
-jit_test_functions = [
- '_TorchScriptTesting_StackString::pop',
- '_TorchScriptTesting_StackString::push',
- '_TorchScriptTesting_StackString::__init__',
- '_TorchScriptTesting_Foo::combine',
- '_TorchScriptTesting_Foo::add',
- '_TorchScriptTesting_Foo::increment',
- '_TorchScriptTesting_Foo::info',
- '_TorchScriptTesting_Foo::__init__',
-]
-for fn in jit_test_functions:
- white_list.append((fn, datetime.date(2020, 3, 1)))
-
def white_listed(schema, white_list):
for item in white_list: