-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathconfig.h
191 lines (179 loc) · 4.28 KB
/
config.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
#ifndef ULTRANET_CONFIG_H
#define ULTRANET_CONFIG_H
// conv_0
#define CONV_0_K 3
#define CONV_0_S 1
#define CONV_0_P 1
#define CONV_0_IFM_CH 3
#define CONV_0_IFM_ROW 320
#define CONV_0_IFM_COL 640
#define CONV_0_OFM_CH 16
#define CONV_0_OFM_ROW 320
#define CONV_0_OFM_COL 640
#define CONV_0_SIMD 3
#define CONV_0_PE 16
#define CONV_0_IN_BIT 8
#define CONV_0_OUT_BIT 4
#define CONV_0_W_BIT 4
#define CONV_0_INC_BIT 16
#define CONV_0_BIAS_BIT 26
#define CONV_0_W_TILES 9
#define CONV_0_A_TILES 1
#define CONV_0_L_SHIFT 8
// conv_1
#define CONV_1_K 3
#define CONV_1_S 1
#define CONV_1_P 1
#define CONV_1_IFM_CH 16
#define CONV_1_IFM_ROW 160
#define CONV_1_IFM_COL 320
#define CONV_1_OFM_CH 32
#define CONV_1_OFM_ROW 160
#define CONV_1_OFM_COL 320
#define CONV_1_SIMD 16
#define CONV_1_PE 8
#define CONV_1_IN_BIT 4
#define CONV_1_OUT_BIT 4
#define CONV_1_W_BIT 4
#define CONV_1_INC_BIT 13
#define CONV_1_BIAS_BIT 22
#define CONV_1_W_TILES 36
#define CONV_1_A_TILES 4
#define CONV_1_L_SHIFT 8
// conv_2
#define CONV_2_K 3
#define CONV_2_S 1
#define CONV_2_P 1
#define CONV_2_IFM_CH 32
#define CONV_2_IFM_ROW 80
#define CONV_2_IFM_COL 160
#define CONV_2_OFM_CH 64
#define CONV_2_OFM_ROW 80
#define CONV_2_OFM_COL 160
#define CONV_2_SIMD 16
#define CONV_2_PE 8
#define CONV_2_IN_BIT 4
#define CONV_2_OUT_BIT 4
#define CONV_2_W_BIT 4
#define CONV_2_INC_BIT 12
#define CONV_2_BIAS_BIT 22
#define CONV_2_W_TILES 144
#define CONV_2_A_TILES 8
#define CONV_2_L_SHIFT 8
// conv_3
#define CONV_3_K 3
#define CONV_3_S 1
#define CONV_3_P 1
#define CONV_3_IFM_CH 64
#define CONV_3_IFM_ROW 40
#define CONV_3_IFM_COL 80
#define CONV_3_OFM_CH 64
#define CONV_3_OFM_ROW 40
#define CONV_3_OFM_COL 80
#define CONV_3_SIMD 16
#define CONV_3_PE 4
#define CONV_3_IN_BIT 4
#define CONV_3_OUT_BIT 4
#define CONV_3_W_BIT 4
#define CONV_3_INC_BIT 11
#define CONV_3_BIAS_BIT 21
#define CONV_3_W_TILES 576
#define CONV_3_A_TILES 16
#define CONV_3_L_SHIFT 8
// conv_4
#define CONV_4_K 3
#define CONV_4_S 1
#define CONV_4_P 1
#define CONV_4_IFM_CH 64
#define CONV_4_IFM_ROW 20
#define CONV_4_IFM_COL 40
#define CONV_4_OFM_CH 64
#define CONV_4_OFM_ROW 20
#define CONV_4_OFM_COL 40
#define CONV_4_SIMD 8
#define CONV_4_PE 2
#define CONV_4_IN_BIT 4
#define CONV_4_OUT_BIT 4
#define CONV_4_W_BIT 4
#define CONV_4_INC_BIT 12
#define CONV_4_BIAS_BIT 21
#define CONV_4_W_TILES 2304
#define CONV_4_A_TILES 32
#define CONV_4_L_SHIFT 8
// conv_5
#define CONV_5_K 3
#define CONV_5_S 1
#define CONV_5_P 1
#define CONV_5_IFM_CH 64
#define CONV_5_IFM_ROW 20
#define CONV_5_IFM_COL 40
#define CONV_5_OFM_CH 64
#define CONV_5_OFM_ROW 20
#define CONV_5_OFM_COL 40
#define CONV_5_SIMD 8
#define CONV_5_PE 2
#define CONV_5_IN_BIT 4
#define CONV_5_OUT_BIT 4
#define CONV_5_W_BIT 4
#define CONV_5_INC_BIT 12
#define CONV_5_BIAS_BIT 21
#define CONV_5_W_TILES 2304
#define CONV_5_A_TILES 32
#define CONV_5_L_SHIFT 8
// conv_6
#define CONV_6_K 3
#define CONV_6_S 1
#define CONV_6_P 1
#define CONV_6_IFM_CH 64
#define CONV_6_IFM_ROW 20
#define CONV_6_IFM_COL 40
#define CONV_6_OFM_CH 64
#define CONV_6_OFM_ROW 20
#define CONV_6_OFM_COL 40
#define CONV_6_SIMD 8
#define CONV_6_PE 2
#define CONV_6_IN_BIT 4
#define CONV_6_OUT_BIT 4
#define CONV_6_W_BIT 4
#define CONV_6_INC_BIT 12
#define CONV_6_BIAS_BIT 21
#define CONV_6_W_TILES 2304
#define CONV_6_A_TILES 32
#define CONV_6_L_SHIFT 8
// conv_7
#define CONV_7_K 3
#define CONV_7_S 1
#define CONV_7_P 1
#define CONV_7_IFM_CH 64
#define CONV_7_IFM_ROW 20
#define CONV_7_IFM_COL 40
#define CONV_7_OFM_CH 64
#define CONV_7_OFM_ROW 20
#define CONV_7_OFM_COL 40
#define CONV_7_SIMD 8
#define CONV_7_PE 2
#define CONV_7_IN_BIT 4
#define CONV_7_OUT_BIT 4
#define CONV_7_W_BIT 4
#define CONV_7_INC_BIT 14
#define CONV_7_BIAS_BIT 24
#define CONV_7_W_TILES 2304
#define CONV_7_A_TILES 32
#define CONV_7_L_SHIFT 8
// conv_8
#define CONV_8_K 1
#define CONV_8_S 1
#define CONV_8_P 0
#define CONV_8_IFM_CH 64
#define CONV_8_IFM_ROW 20
#define CONV_8_IFM_COL 40
#define CONV_8_OFM_CH 36
#define CONV_8_OFM_ROW 20
#define CONV_8_OFM_COL 40
#define CONV_8_SIMD 8
#define CONV_8_PE 2
#define CONV_8_IN_BIT 4
#define CONV_8_W_BIT 4
#define CONV_8_W_TILES 144
#define CONV_8_L_SHIFT 8
#endif // ULTRANET_CONFIG_H