QNN: Flexible Context Binaries instead of per-Hexagon files

#1
by msluszniak - opened
qnn/config.json CHANGED
@@ -9,72 +9,10 @@
9
  "license": "bsd-3-clause",
10
  "variants": [
11
  {
12
- "file": "lraspp_mobilenet_v3_large_qnn_a8w8_v69.pte",
13
- "precision": "a8w8",
14
- "quantized": true,
15
- "default": false,
16
- "methods": {
17
- "forward": {
18
- "inputs": [
19
- {
20
- "shape": [
21
- 1,
22
- 3,
23
- 520,
24
- 520
25
- ],
26
- "dtype": "float32"
27
- }
28
- ],
29
- "outputs": [
30
- {
31
- "shape": [
32
- 1,
33
- 520,
34
- 520
35
- ],
36
- "dtype": "int32"
37
- }
38
- ]
39
- }
40
- }
41
- },
42
- {
43
- "file": "lraspp_mobilenet_v3_large_qnn_a8w8_v73.pte",
44
- "precision": "a8w8",
45
- "quantized": true,
46
- "default": false,
47
- "methods": {
48
- "forward": {
49
- "inputs": [
50
- {
51
- "shape": [
52
- 1,
53
- 3,
54
- 520,
55
- 520
56
- ],
57
- "dtype": "float32"
58
- }
59
- ],
60
- "outputs": [
61
- {
62
- "shape": [
63
- 1,
64
- 520,
65
- 520
66
- ],
67
- "dtype": "int32"
68
- }
69
- ]
70
- }
71
- }
72
- },
73
- {
74
- "file": "lraspp_mobilenet_v3_large_qnn_a8w8_v75.pte",
75
  "precision": "a8w8",
76
  "quantized": true,
77
- "default": false,
78
  "methods": {
79
  "forward": {
80
  "inputs": [
@@ -102,7 +40,8 @@
102
  }
103
  },
104
  {
105
- "file": "lraspp_mobilenet_v3_large_qnn_a8w8_v79.pte",
 
106
  "precision": "a8w8",
107
  "quantized": true,
108
  "default": false,
@@ -131,37 +70,6 @@
131
  ]
132
  }
133
  }
134
- },
135
- {
136
- "file": "lraspp_mobilenet_v3_large_qnn_a8w8_v81.pte",
137
- "precision": "a8w8",
138
- "quantized": true,
139
- "default": true,
140
- "methods": {
141
- "forward": {
142
- "inputs": [
143
- {
144
- "shape": [
145
- 1,
146
- 3,
147
- 520,
148
- 520
149
- ],
150
- "dtype": "float32"
151
- }
152
- ],
153
- "outputs": [
154
- {
155
- "shape": [
156
- 1,
157
- 520,
158
- 520
159
- ],
160
- "dtype": "int32"
161
- }
162
- ]
163
- }
164
- }
165
  }
166
  ]
167
  }
 
9
  "license": "bsd-3-clause",
10
  "variants": [
11
  {
12
+ "file": "lraspp_mobilenet_v3_large_qnn_a8w8.pte",
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
13
  "precision": "a8w8",
14
  "quantized": true,
15
+ "default": true,
16
  "methods": {
17
  "forward": {
18
  "inputs": [
 
40
  }
41
  },
42
  {
43
+ "file": "lraspp_mobilenet_v3_large_qnn_a8w8_v69.pte",
44
+ "soc_group": "v69",
45
  "precision": "a8w8",
46
  "quantized": true,
47
  "default": false,
 
70
  ]
71
  }
72
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
73
  }
74
  ]
75
  }
qnn/{lraspp_mobilenet_v3_large_qnn_a8w8_v73.pte → lraspp_mobilenet_v3_large_qnn_a8w8.pte} RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:2830bf20a24a00deb6eb819630138bc697c1b00478fc5031ec742d7548cfa42e
3
- size 4523520
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:83a3227c2a3cd4bed9f3e81e3e6e6403be50fc39e8dbaa1d078b8823bb909857
3
+ size 6528315
qnn/lraspp_mobilenet_v3_large_qnn_a8w8_v69.pte CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:d5382bfc1c64dd587886956644b2541cea07c6e714e6bd4424a02240f7550ec3
3
- size 6981120
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2cec33c9d2f0a77aa8249a2b1f8985fffeee2d8c58f6d22450b3d765272504fa
3
+ size 7395580
qnn/lraspp_mobilenet_v3_large_qnn_a8w8_v75.pte DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:64f6f4a644d8a211f8255932225bedfbe7d10d2ee967f5a9a059947383bbb74d
3
- size 4519424
 
 
 
 
qnn/lraspp_mobilenet_v3_large_qnn_a8w8_v79.pte DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:82a3e81ae9b3728b387530ecb571392c3f186c628b4e160d801381a42e1ec1dc
3
- size 4523520
 
 
 
 
qnn/lraspp_mobilenet_v3_large_qnn_a8w8_v81.pte DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:1c48af60e9cbe0b420d0d48da3d79d6e31487686abfbd6fc4d58ae19397b42f5
3
- size 4556288