[ez] Add super().setUp() in test_ops::TestFakeTensor (#157475)

Noticed some disable issues getting a bunch of comments, so I took a look

One day I'll write a better check for this
Pull Request resolved: https://github.com/pytorch/pytorch/pull/157475
Approved by: https://github.com/huydhn
This commit is contained in:
Catherine Lee
2025-07-02 20:34:00 +00:00
committed by PyTorch MergeBot
parent e20784f228
commit 6f60cfe9b1

View File

@ -2570,6 +2570,7 @@ fake_autocast_backward_xfails = {
@unMarkDynamoStrictTest
class TestFakeTensor(TestCase):
def setUp(self):
super().setUp()
# Turn on FakeTensor caching and cross-checking for these tests:
cache_enabled = unittest.mock.patch(
"torch._dynamo.config.fake_tensor_cache_enabled", True