-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* support python 3.9 * update CI * onnxruntime * . * . * onnxruntime * t 55 * t 75 * add script * use * onnx * onnx * onnx * whl * np * find * 21 * Apply suggestions from code review * Apply suggestions from code review * onnx * CI * req * ~ dockers * min * . * drop horovod * drop horovod * drop horovod * fix * fix * .
- Loading branch information
Showing
12 changed files
with
88 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
#!/usr/bin/env bash | ||
|
||
ROOT=$PWD | ||
|
||
# python -m pip install protobuf | ||
# git clone --recursive https://github.com/onnx/onnx.git | ||
# cd onnx | ||
# python setup.py bdist_wheel | ||
# pip install --upgrade dist/*.whl | ||
# cd $ROOT | ||
# rm -rf onnx | ||
|
||
|
||
# https://github.com/microsoft/onnxruntime/blob/master/BUILD.md | ||
git clone --recursive https://github.com/Microsoft/onnxruntime | ||
cd onnxruntime | ||
export ONNX_ML=1 | ||
pip install setuptools wheel numpy | ||
|
||
if [[ "$OSTYPE" == "linux-gnu"* ]]; then | ||
./build.sh --config RelWithDebInfo --build_shared_lib --build_wheel --parallel | ||
elif [[ "$OSTYPE" == "darwin"* ]]; then | ||
# Mac OSX | ||
./build.sh --config RelWithDebInfo --build_shared_lib --build_wheel --parallel --use_xcode | ||
elif [[ "$OSTYPE" == "cygwin" ]]; then | ||
# POSIX compatibility layer and Linux environment emulation for Windows | ||
./build.sh --config RelWithDebInfo --build_shared_lib --build_wheel --parallel | ||
elif [[ "$OSTYPE" == "msys" ]]; then | ||
# Lightweight shell and GNU utilities compiled for Windows (part of MinGW) | ||
.\build.bat --config RelWithDebInfo --build_shared_lib --build_wheel --parallel | ||
elif [[ "$OSTYPE" == "win32" ]]; then | ||
.\build.bat --config RelWithDebInfo --build_shared_lib --build_wheel --parallel | ||
else | ||
echo $OSTYPE # Unknown. | ||
fi | ||
|
||
find . -name "*.whl" | ||
pip install --upgrade $(find . -name "*.whl") | ||
|
||
cd $ROOT | ||
rm -rf onnxruntime |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters