Classes | |
class | NoThreadPool |
struct | Options |
struct | SessionCache |
class | TBBThreadPool |
Typedefs | |
typedef std::pair< std::string, Tensor > | NamedTensor |
typedef std::vector< NamedTensor > | NamedTensorList |
Enumerations | |
enum | Backend { Backend::cpu, Backend::cuda, Backend::rocm, Backend::intel, Backend::best } |
Functions | |
bool | closeSession (Session *&session) |
bool | closeSession (const Session *&session) |
Session * | createSession () |
Session * | createSession (Options &options) |
Session * | createSession (const MetaGraphDef *metaGraphDef, const std::string &exportDir, Options &options) |
Session * | createSession (const GraphDef *graphDef) |
Session * | createSession (const GraphDef *graphDef, Options &options) |
GraphDef * | loadGraphDef (const std::string &pbFile) |
MetaGraphDef * | loadMetaGraph (const std::string &exportDir, const std::string &tag, Options &Options) |
MetaGraphDef * | loadMetaGraphDef (const std::string &exportDir, const std::string &tag=kSavedModelTagServe) |
MetaGraphDef * | loadMetaGraphDef (const std::string &exportDir, const std::string &tag, Options &options) |
void | run (Session *session, const NamedTensorList &inputs, const std::vector< std::string > &outputNames, std::vector< Tensor > *outputs, const thread::ThreadPoolOptions &threadPoolOptions) |
void | run (const 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 (const 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 (const 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 | run (const 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") |
typedef std::pair<std::string, Tensor> tensorflow::NamedTensor |
Definition at line 30 of file TensorFlow.h.
typedef std::vector<NamedTensor> tensorflow::NamedTensorList |
Definition at line 31 of file TensorFlow.h.
|
strong |
bool tensorflow::closeSession | ( | Session *& | session | ) |
Definition at line 234 of file TensorFlow.cc.
References mps_update::status.
Referenced by closeSession(), tensorflow::SessionCache::closeSession(), DTOccupancyTestML::dqmEndLuminosityBlock(), GEDPhotonProducer::endStream(), GsfElectronProducer::endStream(), L2TauNNProducer::globalEndJob(), BaseMVACache::~BaseMVACache(), BJetTFCache::~BJetTFCache(), reco::DeepSCGraphEvaluation::~DeepSCGraphEvaluation(), deep_tau::DeepTauCache::~DeepTauCache(), DisplacedRegionSeedingVertexProducer::~DisplacedRegionSeedingVertexProducer(), PtAssignmentEngineDxy::~PtAssignmentEngineDxy(), TfGraphDefWrapper::~TfGraphDefWrapper(), and TSGForOIDNN::~TSGForOIDNN().
bool tensorflow::closeSession | ( | const Session *& | session | ) |
Session * tensorflow::createSession | ( | ) |
Definition at line 137 of file TensorFlow.cc.
Referenced by BaseMVACache::BaseMVACache(), BJetTFCache::BJetTFCache(), PtAssignmentEngineDxy::configure(), createSession(), tensorflow::SessionCache::createSession(), deep_tau::DeepTauCache::DeepTauCache(), DisplacedRegionSeedingVertexProducer::DisplacedRegionSeedingVertexProducer(), DTOccupancyTestML::dqmEndLuminosityBlock(), egammaTools::EgammaDNNHelper::getSessions(), HGCalConcentratorAutoEncoderImpl::HGCalConcentratorAutoEncoderImpl(), L2TauNNProducer::initializeGlobalCache(), reco::DeepSCGraphEvaluation::initTensorFlowGraphAndSession(), TfGraphDefProducer::produce(), and TSGForOIDNN::TSGForOIDNN().
Definition at line 142 of file TensorFlow.cc.
References Exception, and mps_update::status.
Session * tensorflow::createSession | ( | const MetaGraphDef * | metaGraphDef, |
const std::string & | exportDir, | ||
Options & | options | ||
) |
Definition at line 156 of file TensorFlow.cc.
References createSession(), cms::soa::RestrictQualify::Default, Exception, convertSQLiteXML::ok, mps_update::status, and AlCaHLTBitMon_QueryRunRegistry::string.
Session * tensorflow::createSession | ( | const GraphDef * | graphDef | ) |
Definition at line 208 of file TensorFlow.cc.
References createSession(), Exception, and mps_update::status.
GraphDef * tensorflow::loadGraphDef | ( | const std::string & | pbFile | ) |
Definition at line 120 of file TensorFlow.cc.
References cms::soa::RestrictQualify::Default, Exception, and mps_update::status.
Referenced by BaseMVACache::BaseMVACache(), PtAssignmentEngineDxy::configure(), tensorflow::SessionCache::createSession(), deep_tau::DeepTauCache::DeepTauCache(), DisplacedRegionSeedingVertexProducer::DisplacedRegionSeedingVertexProducer(), DTOccupancyTestML::dqmEndLuminosityBlock(), HGCalConcentratorAutoEncoderImpl::HGCalConcentratorAutoEncoderImpl(), L2TauNNProducer::initializeGlobalCache(), reco::DeepSCGraphEvaluation::initTensorFlowGraphAndSession(), egammaTools::EgammaDNNHelper::initTensorFlowGraphs(), TfGraphDefProducer::produce(), and TSGForOIDNN::TSGForOIDNN().
MetaGraphDef * tensorflow::loadMetaGraph | ( | const std::string & | exportDir, |
const std::string & | tag, | ||
Options & | Options | ||
) |
Definition at line 113 of file TensorFlow.cc.
References loadMetaGraphDef(), and makeGlobalPositionRcd_cfg::tag.
MetaGraphDef * tensorflow::loadMetaGraphDef | ( | const std::string & | exportDir, |
const std::string & | tag = kSavedModelTagServe |
||
) |
Definition at line 91 of file TensorFlow.cc.
References makeGlobalPositionRcd_cfg::tag.
Referenced by loadMetaGraph().
MetaGraphDef * tensorflow::loadMetaGraphDef | ( | const std::string & | exportDir, |
const std::string & | tag, | ||
Options & | options | ||
) |
Definition at line 96 of file TensorFlow.cc.
References Exception, mps_update::status, and makeGlobalPositionRcd_cfg::tag.
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 259 of file TensorFlow.cc.
References Exception, PixelMapPlotter::inputs, jetsAK4_CHS_cff::outputNames, PatBasicFWLiteJetAnalyzer_Selector_cfg::outputs, and mps_update::status.
Referenced by PtAssignmentEngineDxy::call_tensorflow_dxy(), MkFitOutputConverter::computeDNNs(), ticl::PatternRecognitionbyCLUE3D< TILES >::energyRegressionAndID(), ticl::PatternRecognitionbyCA< TILES >::energyRegressionAndID(), ticl::PatternRecognitionbyFastJet< TILES >::energyRegressionAndID(), TrackstersMergeProducerV3::energyRegressionAndID(), TrackstersMergeProducer::energyRegressionAndID(), egammaTools::EgammaDNNHelper::evaluate(), reco::DeepSCGraphEvaluation::evaluate(), TSGForOIDNN::evaluateClassifier(), TauNNId::EvaluateNN(), BJetId::EvaluateNN(), TSGForOIDNN::evaluateRegressor(), DisplacedRegionSeedingVertexProducer::getDiscriminatorValue(), DeepTauId::getPartialPredictions(), DeepTauId::getPredictionsV2(), L2TauNNProducer::getTauScore(), DeepMETProducer::produce(), BaseMVAValueMapProducer< pat::Muon >::produce(), run(), DTOccupancyTestML::runOccupancyTest(), DeepCoreSeedGenerator::SeedEvaluation(), and HGCalConcentratorAutoEncoderImpl::select().
|
inline |
Definition at line 120 of file TensorFlow.h.
References PixelMapPlotter::inputs, jetsAK4_CHS_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, | ||
thread::ThreadPoolInterface * | threadPool | ||
) |
Definition at line 278 of file TensorFlow.cc.
References PixelMapPlotter::inputs, jetsAK4_CHS_cff::outputNames, PatBasicFWLiteJetAnalyzer_Selector_cfg::outputs, and run().
|
inline |
Definition at line 140 of file TensorFlow.h.
References PixelMapPlotter::inputs, jetsAK4_CHS_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 std::string & | threadPoolName = "no_threads" |
||
) |
Definition at line 292 of file TensorFlow.cc.
References Exception, PixelMapPlotter::inputs, tensorflow::NoThreadPool::instance(), tensorflow::TBBThreadPool::instance(), jetsAK4_CHS_cff::outputNames, PatBasicFWLiteJetAnalyzer_Selector_cfg::outputs, and run().
|
inline |
Definition at line 160 of file TensorFlow.h.
References PixelMapPlotter::inputs, jetsAK4_CHS_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 311 of file TensorFlow.cc.
References jetsAK4_CHS_cff::outputNames, PatBasicFWLiteJetAnalyzer_Selector_cfg::outputs, and run().
|
inline |
Definition at line 179 of file TensorFlow.h.
References jetsAK4_CHS_cff::outputNames, PatBasicFWLiteJetAnalyzer_Selector_cfg::outputs, and run().
void tensorflow::setLogging | ( | const std::string & | level = "3" | ) |
Definition at line 81 of file TensorFlow.cc.
References personalPlayback::level.
Referenced by reco::DeepSCGraphEvaluation::DeepSCGraphEvaluation(), DTOccupancyTestML::dqmEndLuminosityBlock(), HGCalConcentratorAutoEncoderImpl::HGCalConcentratorAutoEncoderImpl(), L1NNTauProducer::initializeGlobalCache(), L2TauNNProducer::initializeGlobalCache(), and TSGForOIDNN::TSGForOIDNN().