Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 0 additions & 20 deletions onnxscript/_internal/version_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,26 +43,6 @@ def transformers_older_than(version: str) -> bool | None:
)


def is_onnxruntime_training() -> bool:
"""Returns True if the onnxruntime is onnxruntime-training."""
try:
from onnxruntime import training # pylint: disable=import-outside-toplevel

assert training
except ImportError:
# onnxruntime not training
return False

try:
from onnxruntime.capi.onnxruntime_pybind11_state import ( # pylint: disable=import-outside-toplevel
OrtValueVector,
)
except ImportError:
return False

return hasattr(OrtValueVector, "push_back_batch")


def onnxruntime_older_than(version: str) -> bool:
"""Returns True if the onnxruntime version is older than the given version."""
import onnxruntime # pylint: disable=import-outside-toplevel
Expand Down
23 changes: 0 additions & 23 deletions onnxscript/tools/benchmark/__init__.py

This file was deleted.

Loading
Loading