text: // Alessandro Antonucci @AlexRookie
  // University of Trento
  
  #ifndef SOMNETWORK_H
  #define SOMNETWORK_H
  
  #include "kerascpp/kerascpp.hpp"
  
  // SOM-classification network
  
  template <int som_rows, int som_cols, int units, int classes>
  void Som(double inputs[units], double out_classes[classes]) {
  
      double som_out[som_rows*som_cols];
      som<units,som_rows*som_cols>(inputs, model_appo_w1, som_out);
  
      double classifier[classes];
      dense<som_rows*som_cols,classes>(som_out, model_appo_w2, model_appo_b2, classifier);
      softmax<classes>(classifier, out_classes);
  }
  
  #endif // SOMNETWORK_H