Wrapper for caffe::Net which handles construction and prediction. More...
#include <TFRegNetHandler.h>
Public Member Functions | |
TFRegNetHandler (const fhicl::ParameterSet &pset) | |
Constructor which takes a pset with DeployProto and ModelFile fields. More... | |
std::vector< float > | Predict (const RegPixelMap &pm) |
Return prediction arrays for RegPixelMap. More... | |
std::vector< float > | Predict (const RegPixelMap &pm, const std::vector< float > cm_list) |
std::vector< float > | PredictNuEEnergy (const RegPixelMap &pm) |
Private Attributes | |
std::string | fLibPath |
Library path (typically dune_pardata...) More... | |
std::string | fTFProtoBuf |
location of the tf .pb file in the above path More... | |
unsigned int | fInputs |
Number of tdcs for the network to classify. More... | |
std::vector< std::string > | fOutputName |
std::vector< bool > | fReverseViews |
Do we need to reverse any views? More... | |
std::unique_ptr< tf::RegCNNGraph > | fTFGraph |
Tensorflow graph. More... | |
Wrapper for caffe::Net which handles construction and prediction.
Definition at line 23 of file TFRegNetHandler.h.
cnn::TFRegNetHandler::TFRegNetHandler | ( | const fhicl::ParameterSet & | pset | ) |
Constructor which takes a pset with DeployProto and ModelFile fields.
Definition at line 23 of file TFRegNetHandler.cxx.
std::vector< float > cnn::TFRegNetHandler::Predict | ( | const RegPixelMap & | pm | ) |
Return prediction arrays for RegPixelMap.
Definition at line 60 of file TFRegNetHandler.cxx.
std::vector< float > cnn::TFRegNetHandler::Predict | ( | const RegPixelMap & | pm, |
const std::vector< float > | cm_list | ||
) |
Definition at line 43 of file TFRegNetHandler.cxx.
std::vector< float > cnn::TFRegNetHandler::PredictNuEEnergy | ( | const RegPixelMap & | pm | ) |
Definition at line 110 of file TFRegNetHandler.cxx.
|
private |
Number of tdcs for the network to classify.
Definition at line 40 of file TFRegNetHandler.h.
|
private |
Library path (typically dune_pardata...)
Definition at line 38 of file TFRegNetHandler.h.
|
private |
Definition at line 41 of file TFRegNetHandler.h.
|
private |
Do we need to reverse any views?
Definition at line 42 of file TFRegNetHandler.h.
|
private |
Tensorflow graph.
Definition at line 43 of file TFRegNetHandler.h.
|
private |
location of the tf .pb file in the above path
Definition at line 39 of file TFRegNetHandler.h.