Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
Signed-off-by: Xavier Dupre <[email protected]>
  • Loading branch information
xadupre committed Jun 21, 2024
1 parent 5c0a6f4 commit 8d5b411
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions onnxscript/tools/benchmark/benchmark_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def run_benchmark(

metrics = _extract_metrics(sout)
if len(metrics) == 0:
if stop_if_exception:
if stop_if_exception: # pylint: disable=no-else-raise
raise BenchmarkError(
f"Unable (2) to continue with config {config}, no metric was "
f"collected.\n--ERROR--\n{serr}\n--OUTPUT--\n{sout}"
Expand All @@ -129,7 +129,7 @@ def run_benchmark(
metrics["ERROR"] = serr
metrics["OUTPUT"] = sout
metrics["CMD"] = f"[{' '.join(cmd)}]"
data.append(metrics) # type: ignore[arg-type
data.append(metrics) # type: ignore[arg-type]
if verbose > 5:
print("--------------- ERROR")
print(serr)
Expand Down

0 comments on commit 8d5b411

Please sign in to comment.