Skip to content

Commit 11d6559

Browse files
xuhancnjansel
authored andcommitted
[inductor] disable failed UTs of test_misc.py (pytorch#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: pytorch#159210 Approved by: https://github.com/jansel Co-authored-by: Jason Ansel <[email protected]>
1 parent e7667e5 commit 11d6559

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

test/dynamo/test_misc.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5140,6 +5140,9 @@ def fn(sample):
51405140

51415141
self.assertTrue(same(ref, res))
51425142

5143+
@skipIfWindows(
5144+
msg="TODO(xuhancn): confirm, AssertionError: tensor([0.0290, 0.4019, 0.2598, 0.3666]) is not None"
5145+
)
51435146
def test_release_input_memory(self):
51445147
x = torch.rand([4])
51455148
x_ref = weakref.ref(x)
@@ -5155,6 +5158,9 @@ def foo(x):
51555158
del x
51565159
self.assertIs(x_ref(), None)
51575160

5161+
@skipIfWindows(
5162+
msg="TODO: (xuhancn) conform, AssertionError: Linear(in_features=10, out_features=10, bias=True) is not None"
5163+
)
51585164
def test_release_module_memory(self):
51595165
mod = torch.nn.Linear(10, 10)
51605166
x = torch.rand([10, 10])
@@ -5186,6 +5192,7 @@ def foo(mod, x):
51865192
self.assertIsNone(mod_ref(), None)
51875193
self.assertIsNone(mod_weight_ref(), None)
51885194

5195+
@skipIfWindows(msg="TODO: (xuhancn) conform, AssertionError: False is not true")
51895196
def test_release_scope_memory(self):
51905197
def inner(y):
51915198
y
@@ -11557,6 +11564,7 @@ def fn(x, const):
1155711564
self.assertIs(c1[1], c2[0])
1155811565

1155911566
@torch._dynamo.config.patch(inline_inbuilt_nn_modules=False)
11567+
@skipIfWindows(msg="TODO: (xuhancn) conform, AssertionError: False is not true")
1156011568
def test_dynamo_cache_invalidate(self):
1156111569
DeletedGuardManagerWrapper = torch._dynamo.guards.DeletedGuardManagerWrapper
1156211570

0 commit comments

Comments
 (0)