#include <DeepTauBase.h>
Public Types | |
using | GraphPtr = std::shared_ptr< tensorflow::GraphDef > |
Public Member Functions | |
DeepTauCache (const std::map< std::string, std::string > &graph_names, bool mem_mapped) | |
const tensorflow::GraphDef & | getGraph (const std::string &name="") const |
tensorflow::Session & | getSession (const std::string &name="") const |
~DeepTauCache () | |
Private Attributes | |
std::map< std::string, GraphPtr > | graphs_ |
std::map< std::string, std::unique_ptr < tensorflow::MemmappedEnv > > | memmappedEnv_ |
std::map< std::string, tensorflow::Session * > | sessions_ |
Definition at line 48 of file DeepTauBase.h.
using deep_tau::DeepTauCache::GraphPtr = std::shared_ptr<tensorflow::GraphDef> |
Definition at line 50 of file DeepTauBase.h.
deep_tau::DeepTauCache::DeepTauCache | ( | const std::map< std::string, std::string > & | graph_names, |
bool | mem_mapped | ||
) |
Definition at line 215 of file DeepTauBase.cc.
References tensorflow::createSession(), Exception, HLT_FULL_cff::graph_file, graphs_, tensorflow::loadGraphDef(), memmappedEnv_, AlCaHLTBitMon_ParallelJobs::options, sessions_, tensorflow::setThreading(), and AlCaHLTBitMon_QueryRunRegistry::string.
deep_tau::DeepTauCache::~DeepTauCache | ( | ) |
Definition at line 253 of file DeepTauBase.cc.
References tensorflow::closeSession(), and sessions_.
|
inline |
Definition at line 58 of file DeepTauBase.h.
References graphs_, and mergeVDriftHistosByStation::name.
Referenced by DeepTauId::DeepTauId(), and DPFIsolation::DPFIsolation().
|
inline |
Definition at line 57 of file DeepTauBase.h.
References mergeVDriftHistosByStation::name, and sessions_.
Referenced by DeepTauId::getPartialPredictions(), DPFIsolation::getPredictions(), DeepTauId::getPredictionsV1(), and DeepTauId::getPredictionsV2().
|
private |
Definition at line 61 of file DeepTauBase.h.
Referenced by DeepTauCache(), and getGraph().
|
private |
Definition at line 63 of file DeepTauBase.h.
Referenced by DeepTauCache().
|
private |
Definition at line 62 of file DeepTauBase.h.
Referenced by DeepTauCache(), getSession(), and ~DeepTauCache().