From fbd130a41f4b9e9cbd257e986e57dc0a7e30d849 Mon Sep 17 00:00:00 2001 From: William Wen Date: Wed, 4 Dec 2024 00:02:52 -0800 Subject: [PATCH] [ci, 3.13] skip failing module tracker dynamo-wrapped test (#141887) Pull Request resolved: https://github.com/pytorch/pytorch/pull/141887 Approved by: https://github.com/StrongerXi, https://github.com/atalman ghstack dependencies: #141409, #142003, #141572, #141577, #141605, #141621, #141623, #141673, #141674, #141858, #141862, #139533, #140733, #141859, #141860, #141886 --- test/test_module_tracker.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/test/test_module_tracker.py b/test/test_module_tracker.py index 457b9648d73..fc153b75aa5 100644 --- a/test/test_module_tracker.py +++ b/test/test_module_tracker.py @@ -4,7 +4,12 @@ from copy import copy import torch from torch import nn -from torch.testing._internal.common_utils import run_tests, TestCase, xfailIfTorchDynamo +from torch.testing._internal.common_utils import ( + run_tests, + skipIfTorchDynamo, + TestCase, + xfailIfTorchDynamo, +) from torch.utils.checkpoint import checkpoint from torch.utils.module_tracker import ModuleTracker @@ -70,6 +75,7 @@ class TestModuleTracker(TestCase): ], ) + @skipIfTorchDynamo("unexplained 3.13+ recursion error") def test_confused_hierarchy(self): class MyMod(nn.Module): def __init__(self):