Skip to content

Commit 44c5b2f

Browse files
generatedunixname499836121meta-codesync[bot]
authored andcommitted
Revert "fix wrong accuracy_status when exception. (#165731)"
Summary: This reverts commit bfcdbd0a970e5ce08cecd0aa33dd389819f0ec4f. Reverted pytorch/pytorch#165731 on behalf of https://github.com/zou3519 due to broke inductor periodic ([comment](pytorch/pytorch#165731 (comment))) Reviewed By: jeanschmidt Differential Revision: D86872823 fbshipit-source-id: 3adaf40787110e0f12ca5d6d47f88d45fc9fb59e
1 parent 9a5a71c commit 44c5b2f

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

userbenchmark/dynamo/dynamobench/common.py

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2288,11 +2288,9 @@ def record_status(accuracy_status, dynamo_start_stats):
22882288
)
22892289
):
22902290
is_same = False
2291-
except Exception as e:
2291+
except Exception:
22922292
# Sometimes torch.allclose may throw RuntimeError
2293-
exception_string = str(e)
2294-
accuracy_status = f"fail_exception: {exception_string}"
2295-
return record_status(accuracy_status, dynamo_start_stats=start_stats)
2293+
is_same = False
22962294

22972295
if not is_same:
22982296
accuracy_status = "eager_two_runs_differ"
@@ -2409,11 +2407,9 @@ def record_status(accuracy_status, dynamo_start_stats):
24092407
force_max_multiplier=force_max_multiplier,
24102408
):
24112409
is_same = False
2412-
except Exception as e:
2410+
except Exception:
24132411
# Sometimes torch.allclose may throw RuntimeError
2414-
exception_string = str(e)
2415-
accuracy_status = f"fail_exception: {exception_string}"
2416-
return record_status(accuracy_status, dynamo_start_stats=start_stats)
2412+
is_same = False
24172413

24182414
if not is_same:
24192415
if self.args.skip_accuracy_check:

0 commit comments

Comments
 (0)