mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-16 21:00:14 +00:00
6 lines
264 B
Python
6 lines
264 B
Python
|
|
# appended to the __init__.py in the onnxruntime module's 'tools' folder from /tools/python/util/__init__append.py
|
||
|
|
import importlib.util
|
||
|
|
have_torch = importlib.util.find_spec("torch")
|
||
|
|
if have_torch:
|
||
|
|
from .pytorch_export_helpers import infer_input_info # noqa
|