Classes | |
class | NoThreadPool |
class | TBBThreadPool |
Typedefs | |
typedef std::pair< std::string, Tensor > | NamedTensor |
typedef std::vector< NamedTensor > | NamedTensorList |
Functions | |
bool | closeSession (Session *&session) |
Session * | createSession (SessionOptions &sessionOptions) |
Session * | createSession (int nThreads=1) |
Session * | createSession (const MetaGraphDef *metaGraphDef, const std::string &exportDir, SessionOptions &sessionOptions) |
Session * | createSession (const MetaGraphDef *metaGraphDef, const std::string &exportDir, int nThreads=1) |
Session * | createSession (const GraphDef *graphDef, SessionOptions &sessionOptions) |
Session * | createSession (const GraphDef *graphDef, int nThreads=1) |
GraphDef * | loadGraphDef (const std::string &pbFile) |
MetaGraphDef * | loadMetaGraph (const std::string &exportDir, const std::string &tag, SessionOptions &sessionOptions) |
MetaGraphDef * | loadMetaGraph (const std::string &exportDir, const std::string &tag=kSavedModelTagServe, int nThreads=1) |
MetaGraphDef * | loadMetaGraphDef (const std::string &exportDir, const std::string &tag, SessionOptions &sessionOptions) |
MetaGraphDef * | loadMetaGraphDef (const std::string &exportDir, const std::string &tag=kSavedModelTagServe, int nThreads=1) |
void | run (Session *session, const NamedTensorList &inputs, const std::vector< std::string > &outputNames, std::vector< Tensor > *outputs, const thread::ThreadPoolOptions &threadPoolOptions) |
void | run (Session *session, const NamedTensorList &inputs, const std::vector< std::string > &outputNames, std::vector< Tensor > *outputs, thread::ThreadPoolInterface *threadPool) |
void | run (Session *session, const NamedTensorList &inputs, const std::vector< std::string > &outputNames, std::vector< Tensor > *outputs, const std::string &threadPoolName="no_threads") |
void | run (Session *session, const std::vector< std::string > &outputNames, std::vector< Tensor > *outputs, const std::string &threadPoolName="no_threads") |
void | setLogging (const std::string &level="3") |
void | setThreading (SessionOptions &sessionOptions, int nThreads=1) |
void | setThreading (SessionOptions &sessionOptions, int nThreads, const std::string &singleThreadPool) |
typedef std::pair<std::string, Tensor> tensorflow::NamedTensor |
Definition at line 29 of file TensorFlow.h.
typedef std::vector<NamedTensor> tensorflow::NamedTensorList |
Definition at line 30 of file TensorFlow.h.
bool tensorflow::closeSession | ( | Session *& | session | ) |
Definition at line 198 of file TensorFlow.cc.
References run_AlCaRecoTriggerBitsUpdateWorkflow::session, and mps_update::status.
Referenced by DTOccupancyTestML::dqmEndLuminosityBlock(), GEDPhotonProducer::endStream(), GsfElectronProducer::endStream(), L2TauNNProducer::globalEndJob(), BaseMVACache::~BaseMVACache(), deep_tau::DeepTauCache::~DeepTauCache(), PtAssignmentEngineDxy::~PtAssignmentEngineDxy(), TauNNId::~TauNNId(), TfGraphDefWrapper::~TfGraphDefWrapper(), and TSGForOIDNN::~TSGForOIDNN().
Session * tensorflow::createSession | ( | SessionOptions & | sessionOptions | ) |
Definition at line 85 of file TensorFlow.cc.
References Exception, run_AlCaRecoTriggerBitsUpdateWorkflow::session, and mps_update::status.
Referenced by BaseMVACache::BaseMVACache(), PtAssignmentEngineDxy::configure(), createSession(), deep_tau::DeepTauCache::DeepTauCache(), DTOccupancyTestML::dqmEndLuminosityBlock(), egammaTools::EgammaDNNHelper::getSessions(), HGCalConcentratorAutoEncoderImpl::HGCalConcentratorAutoEncoderImpl(), L2TauNNProducer::initializeGlobalCache(), TfGraphDefProducer::produce(), TauNNId::TauNNId(), and TSGForOIDNN::TSGForOIDNN().
Session * tensorflow::createSession | ( | int | nThreads = 1 | ) |
Definition at line 99 of file TensorFlow.cc.
References createSession(), and setThreading().
Session * tensorflow::createSession | ( | const MetaGraphDef * | metaGraphDef, |
const std::string & | exportDir, | ||
SessionOptions & | sessionOptions | ||
) |
Definition at line 107 of file TensorFlow.cc.
References createSession(), Exception, convertSQLiteXML::ok, run_AlCaRecoTriggerBitsUpdateWorkflow::session, mps_update::status, and AlCaHLTBitMon_QueryRunRegistry::string.
Session * tensorflow::createSession | ( | const MetaGraphDef * | metaGraphDef, |
const std::string & | exportDir, | ||
int | nThreads = 1 |
||
) |
Definition at line 156 of file TensorFlow.cc.
References createSession(), and setThreading().
Session * tensorflow::createSession | ( | const GraphDef * | graphDef, |
SessionOptions & | sessionOptions | ||
) |
Definition at line 164 of file TensorFlow.cc.
References createSession(), Exception, run_AlCaRecoTriggerBitsUpdateWorkflow::session, and mps_update::status.
Session * tensorflow::createSession | ( | const GraphDef * | graphDef, |
int | nThreads = 1 |
||
) |
Definition at line 190 of file TensorFlow.cc.
References createSession(), and setThreading().
GraphDef * tensorflow::loadGraphDef | ( | const std::string & | pbFile | ) |
Definition at line 68 of file TensorFlow.cc.
References Exception, and mps_update::status.
Referenced by BaseMVACache::BaseMVACache(), PtAssignmentEngineDxy::configure(), deep_tau::DeepTauCache::DeepTauCache(), DTOccupancyTestML::dqmEndLuminosityBlock(), HGCalConcentratorAutoEncoderImpl::HGCalConcentratorAutoEncoderImpl(), DeepMETProducer::initializeGlobalCache(), L1NNTauProducer::initializeGlobalCache(), DeepCoreSeedGenerator::initializeGlobalCache(), L2TauNNProducer::initializeGlobalCache(), egammaTools::EgammaDNNHelper::initTensorFlowGraphs(), TfGraphDefProducer::produce(), and TSGForOIDNN::TSGForOIDNN().
MetaGraphDef * tensorflow::loadMetaGraph | ( | const std::string & | exportDir, |
const std::string & | tag, | ||
SessionOptions & | sessionOptions | ||
) |
Definition at line 46 of file TensorFlow.cc.
References loadMetaGraphDef().
MetaGraphDef * tensorflow::loadMetaGraph | ( | const std::string & | exportDir, |
const std::string & | tag = kSavedModelTagServe , |
||
int | nThreads = 1 |
||
) |
Definition at line 61 of file TensorFlow.cc.
References loadMetaGraphDef().
MetaGraphDef * tensorflow::loadMetaGraphDef | ( | const std::string & | exportDir, |
const std::string & | tag, | ||
SessionOptions & | sessionOptions | ||
) |
Definition at line 29 of file TensorFlow.cc.
References Exception, and mps_update::status.
Referenced by loadMetaGraph(), and loadMetaGraphDef().
MetaGraphDef * tensorflow::loadMetaGraphDef | ( | const std::string & | exportDir, |
const std::string & | tag = kSavedModelTagServe , |
||
int | nThreads = 1 |
||
) |
Definition at line 53 of file TensorFlow.cc.
References loadMetaGraphDef(), and setThreading().
void tensorflow::run | ( | Session * | session, |
const NamedTensorList & | inputs, | ||
const std::vector< std::string > & | outputNames, | ||
std::vector< Tensor > * | outputs, | ||
const thread::ThreadPoolOptions & | threadPoolOptions | ||
) |
Definition at line 213 of file TensorFlow.cc.
References Exception, and mps_update::status.
Referenced by PtAssignmentEngineDxy::call_tensorflow_dxy(), ticl::PatternRecognitionbyCLUE3D< TILES >::energyRegressionAndID(), ticl::PatternRecognitionbyCA< TILES >::energyRegressionAndID(), ticl::PatternRecognitionbyFastJet< TILES >::energyRegressionAndID(), TrackstersMergeProducer::energyRegressionAndID(), egammaTools::EgammaDNNHelper::evaluate(), TSGForOIDNN::evaluateClassifier(), TauNNId::EvaluateNN(), TSGForOIDNN::evaluateRegressor(), DeepTauId::getPartialPredictions(), DPFIsolation::getPredictions(), DeepTauId::getPredictionsV1(), DeepTauId::getPredictionsV2(), L2TauNNProducer::getTauScore(), DeepMETProducer::produce(), BaseMVAValueMapProducer< T >::produce(), run(), DTOccupancyTestML::runOccupancyTest(), DeepCoreSeedGenerator::SeedEvaluation(), and HGCalConcentratorAutoEncoderImpl::select().
void tensorflow::run | ( | Session * | session, |
const NamedTensorList & | inputs, | ||
const std::vector< std::string > & | outputNames, | ||
std::vector< Tensor > * | outputs, | ||
thread::ThreadPoolInterface * | threadPool | ||
) |
void tensorflow::run | ( | Session * | session, |
const NamedTensorList & | inputs, | ||
const std::vector< std::string > & | outputNames, | ||
std::vector< Tensor > * | outputs, | ||
const std::string & | threadPoolName = "no_threads" |
||
) |
Definition at line 246 of file TensorFlow.cc.
References Exception, tensorflow::NoThreadPool::instance(), tensorflow::TBBThreadPool::instance(), and run().
void tensorflow::run | ( | Session * | session, |
const std::vector< std::string > & | outputNames, | ||
std::vector< Tensor > * | outputs, | ||
const std::string & | threadPoolName = "no_threads" |
||
) |
void tensorflow::setLogging | ( | const std::string & | level = "3" | ) |
void tensorflow::setThreading | ( | SessionOptions & | sessionOptions, |
int | nThreads = 1 |
||
) |
Definition at line 17 of file TensorFlow.cc.
Referenced by createSession(), deep_tau::DeepTauCache::DeepTauCache(), loadMetaGraphDef(), and setThreading().
void tensorflow::setThreading | ( | SessionOptions & | sessionOptions, |
int | nThreads, | ||
const std::string & | singleThreadPool | ||
) |
Definition at line 23 of file TensorFlow.cc.
References setThreading().