Skip to content

Commit 503c748

Browse files
gchananfacebook-github-bot
authored andcommittedSep 17, 2020
Always use NewModuleTest instead of ModuleTest. (pytorch#44745)
Summary: Pull Request resolved: pytorch#44745 Much like CriterionTest, NewCriterionTest these are outdated formulations and we should just use the new one. Test Plan: Imported from OSS Reviewed By: albanD Differential Revision: D23717808 Pulled By: gchanan fbshipit-source-id: eb91982eef23452456044381334bfc9a5bbd837e
1 parent 28085cb commit 503c748

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎test/test_cpp_api_parity.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ class TestCppApiParity(common.TestCase):
2626
expected_test_params_dicts = []
2727

2828
for test_params_dicts, test_instance_class in [
29-
(sample_module.module_tests, common_nn.ModuleTest),
29+
(sample_module.module_tests, common_nn.NewModuleTest),
3030
(sample_functional.functional_tests, common_nn.NewModuleTest),
31-
(common_nn.module_tests, common_nn.ModuleTest),
31+
(common_nn.module_tests, common_nn.NewModuleTest),
3232
(common_nn.new_module_tests, common_nn.NewModuleTest),
3333
(common_nn.criterion_tests, common_nn.CriterionTest),
3434
]:

0 commit comments

Comments
 (0)
Please sign in to comment.