diff --git a/AXOL1TL_v1/NN/GTADModel_v1.cpp b/AXOL1TL_v1/NN/GTADModel_v1.cpp index f74706a..dfacd51 100644 --- a/AXOL1TL_v1/NN/GTADModel_v1.cpp +++ b/AXOL1TL_v1/NN/GTADModel_v1.cpp @@ -21,7 +21,7 @@ #include "GTADModel_v1.h" #include "parameters.h" -using namespace hls4ml_axol1tl_v1; +namespace hls4ml_axol1tl_v1 { void GTADModel_v1( input_t input_1[N_INPUT_1_1], @@ -76,4 +76,6 @@ void GTADModel_v1( nnet::linear(layer6_out, layer7_out); // mu_quantized_bits +} // hls4ml_axol1tl_v1 + } diff --git a/AXOL1TL_v1/NN/GTADModel_v1.h b/AXOL1TL_v1/NN/GTADModel_v1.h index f740076..38206f4 100644 --- a/AXOL1TL_v1/NN/GTADModel_v1.h +++ b/AXOL1TL_v1/NN/GTADModel_v1.h @@ -26,10 +26,14 @@ #include "defines.h" +namespace hls4ml_axol1tl_v1 { + // Prototype of top level function for C-synthesis void GTADModel_v1( hls4ml_axol1tl_v1::input_t input_1[hls4ml_axol1tl_v1::N_INPUT_1_1], hls4ml_axol1tl_v1::result_t layer7_out[hls4ml_axol1tl_v1::N_LAYER_6] ); +} // namespace hls4ml_axol1tl_v1 + #endif diff --git a/AXOL1TL_v3/NN/GTADModel_v3.cpp b/AXOL1TL_v3/NN/GTADModel_v3.cpp index 667045c..dbaeb55 100644 --- a/AXOL1TL_v3/NN/GTADModel_v3.cpp +++ b/AXOL1TL_v3/NN/GTADModel_v3.cpp @@ -24,7 +24,7 @@ //from https://gitlab.cern.ch/ssummers/run3_ugt_ml/-/blob/axol1tl_v3/ugt_hls/src/anomaly_detection/Axol1tl_v3.h -using namespace hls4ml_axol1tl_v3; +namespace hls4ml_axol1tl_v3 { void GTADModel_v3( input_t input_3[N_INPUT_1_1], @@ -84,5 +84,6 @@ void GTADModel_v3( nnet::linear(layer6_out, layer7_out); // mu_quantized_bits +} // namespace hls4ml_axol1tl_v3 } diff --git a/AXOL1TL_v3/NN/GTADModel_v3.h b/AXOL1TL_v3/NN/GTADModel_v3.h index 915e3e3..9ba4403 100644 --- a/AXOL1TL_v3/NN/GTADModel_v3.h +++ b/AXOL1TL_v3/NN/GTADModel_v3.h @@ -28,10 +28,14 @@ #include "defines.h" +namespace hls4ml_axol1tl_v3 { + //from https://gitlab.cern.ch/ssummers/run3_ugt_ml/-/blob/axol1tl_v3/ugt_hls/src/anomaly_detection/Axol1tl_v3.h void GTADModel_v3( hls4ml_axol1tl_v3::input_t input_3[hls4ml_axol1tl_v3::N_INPUT_1_1], hls4ml_axol1tl_v3::result_t layer7_out[hls4ml_axol1tl_v3::N_LAYER_6] ); +} // namespace hls4ml_axol1tl_v3 + #endif