Skip to content

Commit cad464b

Browse files
Update on "[EZ] move test decorator up in the class def"
[ghstack-poisoned]
1 parent e4f3e97 commit cad464b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

test/export/test_export.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33

44
import torch
55
import torch._dynamo as torchdynamo
6-
from torch._dynamo.eval_frame import is_dynamo_supported
6+
from torchdynamo import is_dynamo_supported
77
from torch._export import _export, export
88
from torch._export.trace import do_not_use_experimental_export
99
from torch._export.constraints import constrain_as_size
1010
from torch._export.graph_module import get_export_meta
1111
from torch.fx.experimental.proxy_tensor import make_fx
1212
from torch.testing._internal.common_utils import run_tests, TestCase
1313

14-
14+
@unittest.skipIf(not is_dynamo_supported(), "dynamo not supported")
1515
class TestExperimentalExport(TestCase):
1616
@unittest.skip("TypeError: <lambda>() missing 1 required positional argument")
1717
def test_export_simple_model_with_attr(self):
@@ -30,7 +30,6 @@ def forward(self, x):
3030
exported_program = do_not_use_experimental_export(mod, inp)
3131
self.assertEqual(exported_program.fw_module(*inp)[0], mod(*inp))
3232

33-
@unittest.skipIf(not torchdynamo.is_dynamo_supported(), "dynamo doesn't support")
3433
def test_export_simple_model(self):
3534
class Foo(torch.nn.Module):
3635
def __init__(self, float_val):

0 commit comments

Comments
 (0)