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 99 of file DeepTauId.cc.
using deep_tau::DeepTauCache::GraphPtr = std::shared_ptr<tensorflow::GraphDef> |
Definition at line 101 of file DeepTauId.cc.
|
inline |
Definition at line 103 of file DeepTauId.cc.
References tensorflow::cpu, tensorflow::createSession(), cms::soa::RestrictQualify::Default, Exception, HLT_2023v12_cff::graph_file, graphs_, tensorflow::loadGraphDef(), HLT_2023v12_cff::mem_mapped, memmappedEnv_, AlcaSiPixelAliHarvester0T_cff::options, sessions_, and AlCaHLTBitMon_QueryRunRegistry::string.
|
inline |
Definition at line 140 of file DeepTauId.cc.
References tensorflow::closeSession(), and sessions_.
|
inline |
Definition at line 148 of file DeepTauId.cc.
References graphs_, and Skims_PA_cff::name.
|
inline |
Definition at line 147 of file DeepTauId.cc.
References Skims_PA_cff::name, and sessions_.
Referenced by DeepTauId::getPartialPredictions(), and DeepTauId::getPredictionsV2().
|
private |
Definition at line 151 of file DeepTauId.cc.
Referenced by DeepTauCache(), and getGraph().
|
private |
Definition at line 153 of file DeepTauId.cc.
Referenced by DeepTauCache().
|
private |
Definition at line 152 of file DeepTauId.cc.
Referenced by DeepTauCache(), getSession(), and ~DeepTauCache().