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 (GraphDef *graphDef, int nThreads=1) |
Session * | createSession (GraphDef *graphDef, SessionOptions &sessionOptions) |
Session * | createSession (int nThreads=1) |
Session * | createSession (MetaGraphDef *metaGraphDef, const std::string &exportDir, int nThreads=1) |
Session * | createSession (MetaGraphDef *metaGraphDef, const std::string &exportDir, SessionOptions &sessionOptions) |
Session * | createSession (SessionOptions &sessionOptions) |
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 std::string &threadPoolName="no_threads") |
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 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, const std::string &singleThreadPool) |
void | setThreading (SessionOptions &sessionOptions, int nThreads=1) |
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 196 of file TensorFlow.cc.
References btagGenBb_cfi::Status, and mps_update::status.
Referenced by DTOccupancyTestML::dqmEndLuminosityBlock(), deep_tau::DeepTauCache::~DeepTauCache(), DeepVertexTFJetTagsProducer::~DeepVertexTFJetTagsProducer(), and TauNNId::~TauNNId().
Session * tensorflow::createSession | ( | GraphDef * | graphDef, |
int | nThreads = 1 |
||
) |
Definition at line 188 of file TensorFlow.cc.
References createSession(), runTheMatrix::nThreads, and setThreading().
Session * tensorflow::createSession | ( | GraphDef * | graphDef, |
SessionOptions & | sessionOptions | ||
) |
Definition at line 162 of file TensorFlow.cc.
References createSession(), Exception, btagGenBb_cfi::Status, and mps_update::status.
Session * tensorflow::createSession | ( | int | nThreads = 1 | ) |
Definition at line 99 of file TensorFlow.cc.
References createSession(), runTheMatrix::nThreads, and setThreading().
Session * tensorflow::createSession | ( | MetaGraphDef * | metaGraphDef, |
const std::string & | exportDir, | ||
int | nThreads = 1 |
||
) |
Definition at line 154 of file TensorFlow.cc.
References createSession(), runTheMatrix::nThreads, and setThreading().
Session * tensorflow::createSession | ( | MetaGraphDef * | metaGraphDef, |
const std::string & | exportDir, | ||
SessionOptions & | sessionOptions | ||
) |
Definition at line 107 of file TensorFlow.cc.
References createSession(), Default, Exception, convertSQLiteXML::ok, btagGenBb_cfi::Status, mps_update::status, and AlCaHLTBitMon_QueryRunRegistry::string.
Session * tensorflow::createSession | ( | SessionOptions & | sessionOptions | ) |
Definition at line 85 of file TensorFlow.cc.
References Exception, btagGenBb_cfi::Status, and mps_update::status.
Referenced by BaseMVAValueMapProducer< pat::Jet >::BaseMVAValueMapProducer(), createSession(), deep_tau::DeepTauCache::DeepTauCache(), DeepVertexTFJetTagsProducer::DeepVertexTFJetTagsProducer(), DTOccupancyTestML::dqmEndLuminosityBlock(), ticl::PatternRecognitionbyCA< TILES >::PatternRecognitionbyCA(), TauNNId::TauNNId(), and TrackstersMergeProducer::TrackstersMergeProducer().
GraphDef * tensorflow::loadGraphDef | ( | const std::string & | pbFile | ) |
Definition at line 68 of file TensorFlow.cc.
References Default, Exception, btagGenBb_cfi::Status, and mps_update::status.
Referenced by BaseMVAValueMapProducer< pat::Jet >::BaseMVAValueMapProducer(), deep_tau::DeepTauCache::DeepTauCache(), DTOccupancyTestML::dqmEndLuminosityBlock(), DeepMETProducer::initializeGlobalCache(), L1NNTauProducer::initializeGlobalCache(), TrackstersMergeProducer::initializeGlobalCache(), TrackstersProducer::initializeGlobalCache(), and DeepVertexTFJetTagsProducer::initializeGlobalCache().
MetaGraphDef * tensorflow::loadMetaGraph | ( | const std::string & | exportDir, |
const std::string & | tag, | ||
SessionOptions & | sessionOptions | ||
) |
Definition at line 46 of file TensorFlow.cc.
References loadMetaGraphDef(), and GlobalPosition_Frontier_DevDB_cff::tag.
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(), runTheMatrix::nThreads, and GlobalPosition_Frontier_DevDB_cff::tag.
MetaGraphDef * tensorflow::loadMetaGraphDef | ( | const std::string & | exportDir, |
const std::string & | tag, | ||
SessionOptions & | sessionOptions | ||
) |
Definition at line 29 of file TensorFlow.cc.
References Exception, btagGenBb_cfi::Status, mps_update::status, and GlobalPosition_Frontier_DevDB_cff::tag.
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(), runTheMatrix::nThreads, setThreading(), and GlobalPosition_Frontier_DevDB_cff::tag.
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 244 of file TensorFlow.cc.
References Exception, PixelMapPlotter::inputs, tensorflow::NoThreadPool::instance(), tensorflow::TBBThreadPool::instance(), jets_cff::outputNames, PatBasicFWLiteJetAnalyzer_Selector_cfg::outputs, and run().
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 211 of file TensorFlow.cc.
References Exception, PixelMapPlotter::inputs, jets_cff::outputNames, PatBasicFWLiteJetAnalyzer_Selector_cfg::outputs, btagGenBb_cfi::Status, and mps_update::status.
Referenced by ticl::PatternRecognitionbyCA< TILES >::energyRegressionAndID(), TrackstersMergeProducer::energyRegressionAndID(), TauNNId::EvaluateNN(), DeepTauId::getPartialPredictions(), DPFIsolation::getPredictions(), DeepTauId::getPredictionsV1(), DeepTauId::getPredictionsV2(), DeepMETProducer::produce(), DeepVertexTFJetTagsProducer::produce(), BaseMVAValueMapProducer< pat::Jet >::produce(), run(), and DTOccupancyTestML::runOccupancyTest().
void tensorflow::run | ( | Session * | session, |
const NamedTensorList & | inputs, | ||
const std::vector< std::string > & | outputNames, | ||
std::vector< Tensor > * | outputs, | ||
thread::ThreadPoolInterface * | threadPool | ||
) |
Definition at line 230 of file TensorFlow.cc.
References PixelMapPlotter::inputs, jets_cff::outputNames, PatBasicFWLiteJetAnalyzer_Selector_cfg::outputs, and run().
void tensorflow::run | ( | Session * | session, |
const std::vector< std::string > & | outputNames, | ||
std::vector< Tensor > * | outputs, | ||
const std::string & | threadPoolName = "no_threads" |
||
) |
Definition at line 263 of file TensorFlow.cc.
References jets_cff::outputNames, PatBasicFWLiteJetAnalyzer_Selector_cfg::outputs, and run().
void tensorflow::setLogging | ( | const std::string & | level = "3" | ) |
Definition at line 15 of file TensorFlow.cc.
References personalPlayback::level.
Referenced by BaseMVAValueMapProducer< pat::Jet >::BaseMVAValueMapProducer(), DTOccupancyTestML::dqmEndLuminosityBlock(), L1NNTauProducer::initializeGlobalCache(), and DeepVertexTFJetTagsProducer::initializeGlobalCache().
void tensorflow::setThreading | ( | SessionOptions & | sessionOptions, |
int | nThreads, | ||
const std::string & | singleThreadPool | ||
) |
Definition at line 23 of file TensorFlow.cc.
References runTheMatrix::nThreads, and setThreading().
void tensorflow::setThreading | ( | SessionOptions & | sessionOptions, |
int | nThreads = 1 |
||
) |
Definition at line 17 of file TensorFlow.cc.
References runTheMatrix::nThreads.
Referenced by createSession(), deep_tau::DeepTauCache::DeepTauCache(), loadMetaGraphDef(), and setThreading().