onnxruntime/tools/python/util/__init__.py
Justin Chu fdce4fa6af
Format all python files under onnxruntime with black and isort (#11324)
Description: Format all python files under onnxruntime with black and isort.

After checking in, we can use .git-blame-ignore-revs to ignore the formatting PR in git blame.

#11315, #11316
2022-04-26 09:35:16 -07:00

21 lines
679 B
Python

# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
from .get_azcopy import get_azcopy
from .logger import get_logger
from .platform_helpers import is_linux, is_macOS, is_windows
from .run import run
try:
import flatbuffers # noqa
from .reduced_build_config_parser import parse_config
except ImportError:
get_logger("tools_python_utils").info("flatbuffers module is not installed. parse_config will not be available")
# see if we can make the pytorch helpers available.
import importlib.util # noqa
have_torch = importlib.util.find_spec("torch")
if have_torch:
from .pytorch_export_helpers import infer_input_info