The `onnxruntime-validation` for ORTModule checks for `ImportError`: 44101e8771/onnxruntime/python/onnxruntime_validation.py (L73-L75) If any other kind of error is raised, it does not silently fail and will raise an exception. This causes a problem when ortmodule is explicitly not made available on win/mac packages since we currently raise a RuntimeError. Resolves issue: https://github.com/microsoft/onnxruntime-training-examples/issues/161
44101e8771/onnxruntime/python/onnxruntime_validation.py (L73-L75)