onnxruntime/samples/swift/SwiftMnist
Thiago Crepaldi 83be3759bc
Add post-install command to build PyTorch CPP extensions from within onnxruntime package (#8027)
ORTModule requires two PyTorch CPP extensions that are currently JIT compiled. The runtime compilation can cause issues in some environments without all build requirements or in environments with multiple instances of ORTModule running in parallel

This PR creates a custom command to compile such extensions that must be manually executed before ORTModule is executed for the first time. When users try to use ORTModule before the extensions are compiled, an error with instructions are raised

PyTorch CPP Extensions for ORTModule can be compiled by running:
python -m onnxruntime.training.ortmodule.torch_cpp_extensions.install

Full build environment is needed for this
2021-06-28 18:11:58 -07:00
..
Assets.xcassets Add Swift/macOS sample, a port of the Windows MNist sample 2020-06-05 21:16:41 -07:00
Base.lproj Add Swift/macOS sample, a port of the Windows MNist sample 2020-06-05 21:16:41 -07:00
Preview Content/Preview Assets.xcassets Add Swift/macOS sample, a port of the Windows MNist sample 2020-06-05 21:16:41 -07:00
AppDelegate.swift Add Swift/macOS sample, a port of the Windows MNist sample 2020-06-05 21:16:41 -07:00
ContentView.swift Add Swift/macOS sample, a port of the Windows MNist sample 2020-06-05 21:16:41 -07:00
Info.plist Add Swift/macOS sample, a port of the Windows MNist sample 2020-06-05 21:16:41 -07:00
OnnxInterop.cpp Add Swift/macOS sample, a port of the Windows MNist sample 2020-06-05 21:16:41 -07:00
OnnxInterop.hpp Add post-install command to build PyTorch CPP extensions from within onnxruntime package (#8027) 2021-06-28 18:11:58 -07:00
SwiftMnist-Bridging-Header.h Add Swift/macOS sample, a port of the Windows MNist sample 2020-06-05 21:16:41 -07:00
SwiftMnist.entitlements Add Swift/macOS sample, a port of the Windows MNist sample 2020-06-05 21:16:41 -07:00