Skip to content

add code to run multiple export in one call

GitHub Advanced Security / lintrunner failed Jun 20, 2024 in 6s

6 new alerts including 2 errors

New alerts in code changed by this pull request

  • 2 errors
  • 4 notes

See annotations below for details.

View all branch alerts.

Annotations

Check notice on line 27 in onnxscript/tools/benchmark/benchmark_run.py

See this annotation in the file changed.

Code scanning / lintrunner

PYLINT/C0415 Note test

Import outside toplevel (torch.cuda) (import-outside-toplevel)
See import-outside-toplevel. To disable, use # pylint: disable=import-outside-toplevel

Check notice on line 78 in onnxscript/tools/benchmark/benchmark_run.py

See this annotation in the file changed.

Code scanning / lintrunner

PYLINT/C0415 Note test

Import outside toplevel (tqdm.tqdm) (import-outside-toplevel)
See import-outside-toplevel. To disable, use # pylint: disable=import-outside-toplevel

Check notice on line 110 in onnxscript/tools/benchmark/benchmark_run.py

See this annotation in the file changed.

Code scanning / lintrunner

PYLINT/R1720 Note test

Unnecessary "else" after "raise", remove the "else" and de-indent the code inside it (no-else-raise)
See no-else-raise. To disable, use # pylint: disable=no-else-raise

Check notice on line 94 in onnxscript/tools/benchmark/benchmark_run.py

See this annotation in the file changed.

Code scanning / lintrunner

PYLINT/R1732 Note test

Consider using 'with' for resource-allocating operations (consider-using-with)
See consider-using-with. To disable, use # pylint: disable=consider-using-with

Check failure on line 121 in onnxscript/tools/benchmark/benchmark_run.py

See this annotation in the file changed.

Code scanning / lintrunner

MYPY/arg-type Error test

Argument 1 to "append" of "list" has incompatible type "dict[str, str]"; expected "dict[str, str | int | float | tuple[int, int]]" To disable, use # type: ignore[arg-type]

Check failure on line 76 in onnxscript/tools/benchmark/export_model.py

See this annotation in the file changed.

Code scanning / lintrunner

MYPY/arg-type Error test

Argument 1 to "make_dataframe_from_benchmark_data" has incompatible type "list[dict[str, str | int | float | tuple[int, int]]]"; expected "dict[Any, Any]" To disable, use # type: ignore[arg-type]