Add missing __main__ in two unittests (#97302)

Pull Request resolved: https://github.com/pytorch/pytorch/pull/97302
Approved by: https://github.com/zou3519
This commit is contained in:
Yuxin Wu
2023-03-22 19:09:04 +00:00
committed by PyTorch MergeBot
parent 28929b1205
commit 726fc366a2
2 changed files with 10 additions and 2 deletions

View File

@ -2,7 +2,7 @@
# Owner(s): ["module: internals"]
import torch
from torch.testing._internal.common_utils import TestCase
from torch.testing._internal.common_utils import TestCase, run_tests
class TestComparisonUtils(TestCase):
def test_all_equal_no_assert(self):
@ -30,3 +30,7 @@ class TestComparisonUtils(TestCase):
with self.assertRaises(RuntimeError):
torch._assert_tensor_metadata(t, [3], [1], torch.float)
if __name__ == '__main__':
run_tests()