microsoft/onnxruntime-extensions

Public

mirrored fromhttps://github.com/microsoft/onnxruntime-extensionsAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
352b2003bc6c4604f4285d64133d8bdf11549253

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

ci_build/onnxruntime_integration/build_with_onnxruntime.sh

33lines · modecode

1#!/bin/bash
2
3BASE_DIR=onnxruntime_customops_integration
4
5if [ ! -d $BASE_DIR ]
6then
7 mkdir $BASE_DIR
8fi
9cd $BASE_DIR
10
11git clone https://github.com/microsoft/onnxruntime.git
12cd onnxruntime
13
14# there is no stable version including webassembly
15git checkout e6a3308db7c03a13e0f08b221b6770e17fc3a4ef
16cd cmake/external
17git clone git@github.com:microsoft/onnxruntime-extensions.git
18
19cd ../..
20
21cp cmake/external/onnxruntime-extensions/test/data/custom_op_negpos.onnx onnxruntime/test/testdata
22cp cmake/external/onnxruntime-extensions/test/data/custom_op_string_lower.onnx onnxruntime/test/testdata
23git apply cmake/external/onnxruntime-extensions/ci_build/onnxruntime_integration/onnxruntime_v1.8.patch
24
25#get ready and begin building
26cd ..
27if [ ! -d build ]
28then
29 mkdir build
30fi
31python3 onnxruntime/tools/ci_build/build.py --build_dir build "$@"
32
33
34