File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 33
44import torch
55import torch ._dynamo as torchdynamo
6- from torch . _dynamo . eval_frame import is_dynamo_supported
6+ from torchdynamo import is_dynamo_supported
77from torch ._export import _export , export
88from torch ._export .trace import do_not_use_experimental_export
99from torch ._export .constraints import constrain_as_size
1010from torch ._export .graph_module import get_export_meta
1111from torch .fx .experimental .proxy_tensor import make_fx
1212from torch .testing ._internal .common_utils import run_tests , TestCase
1313
14-
14+ @ unittest . skipIf ( not is_dynamo_supported (), "dynamo not supported" )
1515class 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 ):
You can’t perform that action at this time.
0 commit comments