LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
TFLoaderMLP.h
Go to the documentation of this file.
1 // Class: TFLoaderMLP
3 // Plugin Type: tool
4 // File: TFLoaderMLP_tool.cc TFLoaderMLP.h
5 // Aug. 20, 2022 by Mu Wei (wmu@fnal.gov)
7 #ifndef TFLoaderMLP_H
8 #define TFLoaderMLP_H
9 
11 #include "cetlib/search_path.h"
12 #include "fhiclcpp/ParameterSet.h"
14 
15 namespace phot {
16  class TFLoaderMLP : public TFLoader {
17  public:
18  explicit TFLoaderMLP(fhicl::ParameterSet const& pset);
19  void Initialization();
20  void CloseSession();
21  void Predict(std::vector<double> pars);
22 
23  private:
24  std::string ModelName; //Full path to the model (.pb) file;
25  std::vector<std::string> InputsName; //Name of the input layer;
26  std::string OutputName; //Name of the output layer;
27 
28  tensorflow::SavedModelBundleLite* modelbundle;
29  // tensorflow::SessionOptions* sessionoptions;
30  // tensorflow::Session* session;
31  tensorflow::Status status;
32  };
33 }
34 #endif
std::string ModelName
Definition: TFLoaderMLP.h:24
std::string OutputName
Definition: TFLoaderMLP.h:26
TFLoaderMLP(fhicl::ParameterSet const &pset)
General LArSoft Utilities.
std::vector< std::string > InputsName
Definition: TFLoaderMLP.h:25
tensorflow::Status status
Definition: TFLoaderMLP.h:31
tensorflow::SavedModelBundleLite * modelbundle
Definition: TFLoaderMLP.h:28
void Predict(std::vector< double > pars)