CMS 3D CMS Logo

defines.h
Go to the documentation of this file.
1 #ifndef DEFINES_H_
2 #define DEFINES_H_
3 
4 #include "ap_fixed.h"
5 #include "ap_int.h"
6 
7 #include <cstddef>
8 #include <cstdio>
9 
10 // hls-fpga-machine-learning insert numbers
11 #define N_INPUT_1_1 80
12 #define N_LAYER_2 25
13 #define N_LAYER_2 25
14 #define N_LAYER_5 25
15 #define N_LAYER_5 25
16 #define N_LAYER_8 15
17 #define N_LAYER_8 15
18 #define N_LAYER_11 15
19 #define N_LAYER_11 15
20 #define N_LAYER_14 10
21 #define N_LAYER_14 10
22 #define N_LAYER_17 1
23 #define N_LAYER_17 1
24 #define N_LAYER_20 1
25 
26 // hls-fpga-machine-learning insert layer-precision
27 typedef ap_fixed<16, 6> input_t;
28 typedef ap_fixed<24, 12> input2_t;
29 typedef ap_fixed<16, 6> model_default_t;
30 typedef ap_fixed<16, 6> layer2_t;
31 typedef ap_fixed<9, 3> weight2_t;
32 typedef ap_fixed<9, 3> bias2_t;
33 typedef ap_uint<1> layer2_index;
34 typedef ap_ufixed<9, 0, AP_RND_CONV, AP_SAT> layer4_t;
35 typedef ap_fixed<18, 8> relu_1_table_t;
36 typedef ap_fixed<16, 6> layer5_t;
37 typedef ap_fixed<9, 3> weight5_t;
38 typedef ap_fixed<9, 3> bias5_t;
39 typedef ap_uint<1> layer5_index;
40 typedef ap_ufixed<9, 0, AP_RND_CONV, AP_SAT> layer7_t;
41 typedef ap_fixed<18, 8> relu_2_table_t;
42 typedef ap_fixed<16, 6> layer8_t;
43 typedef ap_fixed<9, 3> weight8_t;
44 typedef ap_fixed<9, 3> bias8_t;
45 typedef ap_uint<1> layer8_index;
46 typedef ap_ufixed<9, 0, AP_RND_CONV, AP_SAT> layer10_t;
47 typedef ap_fixed<18, 8> relu_3_table_t;
48 typedef ap_fixed<16, 6> layer11_t;
49 typedef ap_fixed<9, 3> weight11_t;
50 typedef ap_fixed<9, 3> bias11_t;
51 typedef ap_uint<1> layer11_index;
52 typedef ap_ufixed<9, 0, AP_RND_CONV, AP_SAT> layer13_t;
53 typedef ap_fixed<18, 8> relu_4_table_t;
54 typedef ap_fixed<16, 6> layer14_t;
55 typedef ap_fixed<9, 3> weight14_t;
56 typedef ap_fixed<9, 3> bias14_t;
57 typedef ap_uint<1> layer14_index;
58 typedef ap_ufixed<9, 0, AP_RND_CONV, AP_SAT> layer16_t;
59 typedef ap_fixed<18, 8> relu_5_table_t;
60 typedef ap_fixed<16, 6> layer17_t;
61 typedef ap_fixed<16, 7> weight17_t;
62 typedef ap_fixed<16, 7> bias17_t;
63 typedef ap_uint<1> layer17_index;
64 typedef ap_fixed<16, 6> result_t;
65 typedef ap_fixed<18, 8> jetID_output_table_t;
66 typedef ap_fixed<16, 7> weight20_t;
67 typedef ap_fixed<16, 7> bias20_t;
68 typedef ap_uint<1> layer20_index;
69 
70 #endif
ap_fixed< 16, 6 > layer11_t
Definition: defines.h:48
ap_fixed< 18, 8 > relu_1_table_t
Definition: defines.h:35
ap_fixed< 9, 3 > bias8_t
Definition: defines.h:44
ap_uint< 1 > layer20_index
Definition: defines.h:68
ap_fixed< 16, 6 > model_default_t
Definition: defines.h:29
ap_fixed< 24, 12 > input2_t
Definition: defines.h:28
ap_fixed< 9, 3 > weight11_t
Definition: defines.h:49
ap_uint< 1 > layer8_index
Definition: defines.h:45
ap_fixed< 9, 3 > weight14_t
Definition: defines.h:55
ap_fixed< 9, 3 > weight8_t
Definition: defines.h:43
ap_fixed< 16, 7 > bias17_t
Definition: defines.h:62
ap_fixed< 16, 7 > weight17_t
Definition: defines.h:61
ap_fixed< 16, 6 > layer5_t
Definition: defines.h:36
ap_uint< 1 > layer5_index
Definition: defines.h:39
ap_fixed< 9, 3 > bias14_t
Definition: defines.h:56
ap_ufixed< 9, 0, AP_RND_CONV, AP_SAT > layer4_t
Definition: defines.h:34
ap_fixed< 16, 6 > result_t
Definition: defines.h:64
ap_fixed< 9, 3 > bias5_t
Definition: defines.h:38
ap_fixed< 16, 6 > input_t
Definition: defines.h:27
ap_fixed< 18, 8 > jetID_output_table_t
Definition: defines.h:65
ap_fixed< 18, 8 > relu_2_table_t
Definition: defines.h:41
ap_ufixed< 9, 0, AP_RND_CONV, AP_SAT > layer7_t
Definition: defines.h:40
ap_fixed< 9, 3 > weight2_t
Definition: defines.h:31
ap_ufixed< 9, 0, AP_RND_CONV, AP_SAT > layer13_t
Definition: defines.h:52
ap_uint< 1 > layer14_index
Definition: defines.h:57
ap_fixed< 16, 6 > layer2_t
Definition: defines.h:30
ap_ufixed< 9, 0, AP_RND_CONV, AP_SAT > layer16_t
Definition: defines.h:58
ap_fixed< 16, 6 > layer14_t
Definition: defines.h:54
ap_fixed< 16, 7 > bias20_t
Definition: defines.h:67
ap_fixed< 18, 8 > relu_3_table_t
Definition: defines.h:47
ap_fixed< 9, 3 > bias11_t
Definition: defines.h:50
ap_fixed< 16, 7 > weight20_t
Definition: defines.h:66
ap_fixed< 16, 6 > layer8_t
Definition: defines.h:42
ap_fixed< 9, 3 > bias2_t
Definition: defines.h:32
ap_uint< 1 > layer17_index
Definition: defines.h:63
ap_uint< 1 > layer2_index
Definition: defines.h:33
ap_fixed< 18, 8 > relu_4_table_t
Definition: defines.h:53
ap_fixed< 9, 3 > weight5_t
Definition: defines.h:37
ap_uint< 1 > layer11_index
Definition: defines.h:51
ap_ufixed< 9, 0, AP_RND_CONV, AP_SAT > layer10_t
Definition: defines.h:46
ap_fixed< 16, 6 > layer17_t
Definition: defines.h:60
ap_fixed< 18, 8 > relu_5_table_t
Definition: defines.h:59