mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-06 12:20:52 +01:00
[inductor] disable failed UTs of test_misc.py (#159210)
Disable failed UTs. <img width="1195" height="118" alt="image" src="https://github.com/user-attachments/assets/da0933fb-3c4c-44c9-ba85-45971f03405f" /> Pull Request resolved: https://github.com/pytorch/pytorch/pull/159210 Approved by: https://github.com/jansel Co-authored-by: Jason Ansel <jansel@jansel.net>
This commit is contained in:
parent
e7667e5702
commit
11d6559a58
|
|
@ -5140,6 +5140,9 @@ utils_device.CURRENT_DEVICE == None""".split("\n"):
|
|||
|
||||
self.assertTrue(same(ref, res))
|
||||
|
||||
@skipIfWindows(
|
||||
msg="TODO(xuhancn): confirm, AssertionError: tensor([0.0290, 0.4019, 0.2598, 0.3666]) is not None"
|
||||
)
|
||||
def test_release_input_memory(self):
|
||||
x = torch.rand([4])
|
||||
x_ref = weakref.ref(x)
|
||||
|
|
@ -5155,6 +5158,9 @@ utils_device.CURRENT_DEVICE == None""".split("\n"):
|
|||
del x
|
||||
self.assertIs(x_ref(), None)
|
||||
|
||||
@skipIfWindows(
|
||||
msg="TODO: (xuhancn) conform, AssertionError: Linear(in_features=10, out_features=10, bias=True) is not None"
|
||||
)
|
||||
def test_release_module_memory(self):
|
||||
mod = torch.nn.Linear(10, 10)
|
||||
x = torch.rand([10, 10])
|
||||
|
|
@ -5186,6 +5192,7 @@ utils_device.CURRENT_DEVICE == None""".split("\n"):
|
|||
self.assertIsNone(mod_ref(), None)
|
||||
self.assertIsNone(mod_weight_ref(), None)
|
||||
|
||||
@skipIfWindows(msg="TODO: (xuhancn) conform, AssertionError: False is not true")
|
||||
def test_release_scope_memory(self):
|
||||
def inner(y):
|
||||
y
|
||||
|
|
@ -11557,6 +11564,7 @@ fn
|
|||
self.assertIs(c1[1], c2[0])
|
||||
|
||||
@torch._dynamo.config.patch(inline_inbuilt_nn_modules=False)
|
||||
@skipIfWindows(msg="TODO: (xuhancn) conform, AssertionError: False is not true")
|
||||
def test_dynamo_cache_invalidate(self):
|
||||
DeletedGuardManagerWrapper = torch._dynamo.guards.DeletedGuardManagerWrapper
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user