[fx] fixed unit tests for torch 1.12 (#1327)

This commit is contained in:
Frank Lee
2022-07-15 18:22:15 +08:00
committed by GitHub
parent d49708ae43
commit b2475d8c5c
17 changed files with 2 additions and 18 deletions

View File

@@ -36,7 +36,6 @@ def trace_and_compare(model_cls, tracer, data, meta_args=None):
fx_out, non_fx_out), f'{model.__class__.__name__} has inconsistent outputs, {fx_out} vs {non_fx_out}'
@pytest.mark.skip('skip as timm is required')
def test_timm_models_without_control_flow():
torch.backends.cudnn.deterministic = True
@@ -58,7 +57,6 @@ def test_timm_models_without_control_flow():
trace_and_compare(model_cls, tracer, data)
@pytest.mark.skip('skip as timm is required')
def test_timm_models_with_control_flow():
torch.backends.cudnn.deterministic = True