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 15 of file DeepTauId.cc.
using deep_tau::DeepTauCache::GraphPtr = std::shared_ptr<tensorflow::GraphDef> |
Definition at line 17 of file DeepTauId.cc.
|
inline |
Definition at line 19 of file DeepTauId.cc.
References tensorflow::cpu, tensorflow::createSession(), cms::soa::RestrictQualify::Default, Exception, HLT_2024v13_cff::graph_file, graphs_, tensorflow::loadGraphDef(), HLT_2024v13_cff::mem_mapped, memmappedEnv_, AlcaSiPixelAliHarvester0T_cff::options, sessions_, and AlCaHLTBitMon_QueryRunRegistry::string.
|
inline |
Definition at line 56 of file DeepTauId.cc.
References tensorflow::closeSession(), and sessions_.
|
inline |
|
inline |
Definition at line 63 of file DeepTauId.cc.
References Skims_PA_cff::name, and sessions_.
Referenced by DeepTauId::getPartialPredictions(), and DeepTauId::getPredictionsV2().
|
private |
Definition at line 67 of file DeepTauId.cc.
Referenced by DeepTauCache(), and getGraph().
|
private |
Definition at line 69 of file DeepTauId.cc.
Referenced by DeepTauCache().
|
private |
Definition at line 68 of file DeepTauId.cc.
Referenced by DeepTauCache(), getSession(), and ~DeepTauCache().