This repository was archived by the owner on Nov 25, 2023. It is now read-only.
File tree 2 files changed +37
-1
lines changed
2 files changed +37
-1
lines changed Original file line number Diff line number Diff line change @@ -26,20 +26,22 @@ jobs:
26
26
- name : Run a one-line script
27
27
run : echo Hello, world!
28
28
29
+
29
30
# Runs a set of commands using the runners shell
30
31
- name : Run a multi-line script
31
32
run : |
32
33
echo Add other actions to build,
33
34
echo test, and deploy your project.
34
35
36
+
35
37
- name : pre-commit check
36
38
run :
37
39
cd .github/workflows && ./pre-commit-job.sh
38
40
41
+
39
42
- name : python unit test
40
43
run :
41
44
.github/workflows/unit-test-job.sh
42
-
43
45
44
46
45
47
tnn :
49
51
- name : Run tnn build
50
52
run : cd tnn && ./build.sh
51
53
54
+
55
+ tnn-model-convertor :
56
+ runs-on : ubuntu-latest
57
+ steps :
58
+ - uses : actions/checkout@v2
59
+ - name : Run tnn model convertor build
60
+ run : cd tnn && ./build_tnn_model_convertor.sh
61
+
62
+
52
63
models :
53
64
runs-on : ubuntu-latest
54
65
steps :
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+ set -ex
3
+
4
+ function prepare_env() {
5
+ # default
6
+ pip3 install onnx==1.6.0 onnxruntime numpy onnx-simplifier
7
+
8
+ # optional: tensorflow
9
+ pip3 install tensorflow==1.15.0
10
+ pip3 install tf2onnx
11
+ pip3 install onnxruntime
12
+
13
+ # optional: caffe
14
+ sudo apt-get install libprotobuf-dev protobuf-compiler
15
+ }
16
+
17
+ function main() {
18
+ prepare_env
19
+
20
+ # build
21
+ cd tnn/tools/convert2tnn
22
+ ./build.sh
23
+ }
24
+
25
+ main
You can’t perform that action at this time.
0 commit comments