|
21 | 21 | #include <fstream> |
22 | 22 |
|
23 | 23 | namespace lutNN { |
24 | | - static const int input_I = 10; |
25 | | - static const int input_F = 4; |
26 | | - static const std::size_t networkInputSize = 18; |
| 24 | + static constexpr int input_I = 10; |
| 25 | + static constexpr int input_F = 4; |
| 26 | + static constexpr std::size_t networkInputSize = 18; |
27 | 27 |
|
28 | | - static const int layer1_neurons = 16; |
29 | | - static const int layer1_lut_I = 3; |
30 | | - static const int layer1_lut_F = 13; |
| 28 | + static constexpr int layer1_neurons = 16; |
| 29 | + static constexpr int layer1_lut_I = 3; |
| 30 | + static constexpr int layer1_lut_F = 13; |
31 | 31 |
|
32 | | - static const int layer1_output_I = 4; |
| 32 | + static constexpr int layer1_output_I = 4; |
33 | 33 | //4 bits are for the count of the noHit layers which goes to the input of the layer2 |
34 | | - static const int layer2_input_I = 8; |
| 34 | + static constexpr int layer2_input_I = 8; |
35 | 35 |
|
36 | | - static const int layer2_neurons = 9; |
37 | | - static const int layer2_lut_I = 5; |
38 | | - static const int layer2_lut_F = 11; |
| 36 | + static constexpr int layer2_neurons = 9; |
| 37 | + static constexpr int layer2_lut_I = 5; |
| 38 | + static constexpr int layer2_lut_F = 11; |
39 | 39 |
|
40 | | - static const int layer3_input_I = 5; |
| 40 | + static constexpr int layer3_input_I = 5; |
41 | 41 |
|
42 | | - static const int layer3_0_inputCnt = 8; |
43 | | - static const int layer3_0_lut_I = 5; |
44 | | - static const int layer3_0_lut_F = 11; |
45 | | - static const int output0_I = 8; |
46 | | - static const int output0_F = 2; |
| 42 | + static constexpr int layer3_0_inputCnt = 8; |
| 43 | + static constexpr int layer3_0_lut_I = 5; |
| 44 | + static constexpr int layer3_0_lut_F = 11; |
| 45 | + static constexpr int output0_I = 8; |
| 46 | + static constexpr int output0_F = 2; |
47 | 47 |
|
48 | | - static const int layer3_1_inputCnt = 1; |
49 | | - static const int layer3_1_lut_I = 4; |
50 | | - static const int layer3_1_lut_F = 11; |
51 | | - static const int output1_I = 8; |
52 | | - static const int output1_F = 0; //Does not matter in principle - it is not used |
| 48 | + static constexpr int layer3_1_inputCnt = 1; |
| 49 | + static constexpr int layer3_1_lut_I = 4; |
| 50 | + static constexpr int layer3_1_lut_F = 11; |
| 51 | + static constexpr int output1_I = 8; |
| 52 | + static constexpr int output1_F = 0; //Does not matter in principle - it is not used |
53 | 53 |
|
54 | 54 | typedef LutNetworkFixedPointRegression2Outputs<input_I, |
55 | 55 | input_F, |
|
0 commit comments