#include <ap_fixed.h>
#include <ap_int.h>
#include <array>
#include <vector>
#include <limits>
#include <boost/property_tree/ptree.hpp>
Go to the source code of this file.
◆ CHECK_VAR
#define CHECK_VAR |
( |
|
tree, |
|
|
|
keyPath, |
|
|
|
var |
|
) |
| |
Value:if ((
var) !=
tree.get<
int>((keyPath) +
"." + #
var)) \
throw std::runtime_error((keyPath) +
"." + #
var +
" has different value in the file then given");
Definition at line 37 of file LutNetworkFixedPointCommon.h.
Referenced by lutNN::LutNeuronLayerFixedPoint< layer2_input_I, layer2_input_F, layer1_neurons, layer2_lut_I, layer2_lut_F, layer2_neurons, layer3_input_I >::load(), and lutNN::LutNetworkFixedPointRegression2Outputs< input_I, input_F, inputSize, layer1_lut_I, layer1_lut_F, layer1_neurons, layer1_output_I, layer2_input_I, layer2_lut_I, layer2_lut_F, layer2_neurons, layer3_input_I, layer3_0_inputCnt, layer3_0_lut_I, layer3_0_lut_F, output0_I, output0_F, layer3_1_inputCnt, layer3_1_lut_I, layer3_1_lut_F, output1_I, output1_F >::load().
◆ PUT_VAR
#define PUT_VAR |
( |
|
tree, |
|
|
|
keyPath, |
|
|
|
var |
|
) |
| tree.put((keyPath) + "." + #var, (var)); |
Definition at line 35 of file LutNetworkFixedPointCommon.h.
Referenced by lutNN::LutNeuronLayerFixedPoint< layer2_input_I, layer2_input_F, layer1_neurons, layer2_lut_I, layer2_lut_F, layer2_neurons, layer3_input_I >::save(), and lutNN::LutNetworkFixedPointRegression2Outputs< input_I, input_F, inputSize, layer1_lut_I, layer1_lut_F, layer1_neurons, layer1_output_I, layer2_input_I, layer2_lut_I, layer2_lut_F, layer2_neurons, layer3_input_I, layer3_0_inputCnt, layer3_0_lut_I, layer3_0_lut_F, output0_I, output0_F, layer3_1_inputCnt, layer3_1_lut_I, layer3_1_lut_F, output1_I, output1_F >::save().