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 | checkEmptyInputs (const NamedTensorList &inputs) |
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") |
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::checkEmptyInputs | ( | const NamedTensorList & | inputs | ) |
Definition at line 258 of file TensorFlow.cc.
References input, and PixelMapPlotter::inputs.
Referenced by run().
bool tensorflow::closeSession | ( | Session *& | session | ) |
Definition at line 233 of file TensorFlow.cc.
References mps_update::status.
Referenced by closeSession(), tensorflow::SessionCache::closeSession(), DTOccupancyTestML::dqmEndLuminosityBlock(), GEDPhotonProducer::endStream(), GsfElectronProducer::endStream(), L2TauNNProducerAlpaka::globalEndJob(), L2TauNNProducer::globalEndJob(), BaseMVACache::~BaseMVACache(), BJetTFCache::~BJetTFCache(), reco::DeepSCGraphEvaluation::~DeepSCGraphEvaluation(), deep_tau::DeepTauCache::~DeepTauCache(), DisplacedRegionSeedingVertexProducer::~DisplacedRegionSeedingVertexProducer(), emtf::phase2::EMTFContext::~EMTFContext(), PtAssignmentEngineDxy::~PtAssignmentEngineDxy(), TfGraphDefWrapper::~TfGraphDefWrapper(), and TSGForOIDNN::~TSGForOIDNN().
bool tensorflow::closeSession | ( | const Session *& | session | ) |
Session * tensorflow::createSession | ( | ) |
Definition at line 136 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(), L1NNCaloTauProducer::initializeGlobalCache(), L1NNCaloTauEmulator::initializeGlobalCache(), L2TauNNProducerAlpaka::initializeGlobalCache(), L2TauNNProducer::initializeGlobalCache(), reco::DeepSCGraphEvaluation::initTensorFlowGraphAndSession(), L1TrackVertexAssociationProducer::L1TrackVertexAssociationProducer(), TfGraphDefProducer::produce(), TSGForOIDNN::TSGForOIDNN(), emtf::phase2::EMTFContext::update(), and VertexProducer::VertexProducer().
Definition at line 141 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 155 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 207 of file TensorFlow.cc.
References createSession(), Exception, and mps_update::status.
GraphDef * tensorflow::loadGraphDef | ( | const std::string & | pbFile | ) |
Definition at line 119 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(), L1NNCaloTauProducer::initializeGlobalCache(), L1NNCaloTauEmulator::initializeGlobalCache(), L2TauNNProducerAlpaka::initializeGlobalCache(), L2TauNNProducer::initializeGlobalCache(), reco::DeepSCGraphEvaluation::initTensorFlowGraphAndSession(), egammaTools::EgammaDNNHelper::initTensorFlowGraphs(), L1TrackVertexAssociationProducer::L1TrackVertexAssociationProducer(), TfGraphDefProducer::produce(), TSGForOIDNN::TSGForOIDNN(), emtf::phase2::EMTFContext::update(), and VertexProducer::VertexProducer().
MetaGraphDef * tensorflow::loadMetaGraph | ( | const std::string & | exportDir, |
const std::string & | tag, | ||
Options & | Options | ||
) |
Definition at line 112 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 90 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 95 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 271 of file TensorFlow.cc.
References checkEmptyInputs(), Exception, PixelMapPlotter::inputs, jetsAK4_CHS_cff::outputNames, PatBasicFWLiteJetAnalyzer_Selector_cfg::outputs, and mps_update::status.
Referenced by emtf::phase2::algo::ParameterAssignmentLayer::apply(), PtAssignmentEngineDxy::call_tensorflow_dxy(), MkFitOutputConverter::computeDNNs(), ticl::PatternRecognitionbyCLUE3D< TILES >::energyRegressionAndID(), ticl::PatternRecognitionbyCA< TILES >::energyRegressionAndID(), ticl::PatternRecognitionbyFastJet< TILES >::energyRegressionAndID(), TracksterLinksProducer::energyRegressionAndID(), TrackstersMergeProducer::energyRegressionAndID(), egammaTools::EgammaDNNHelper::evaluate(), reco::DeepSCGraphEvaluation::evaluate(), TSGForOIDNN::evaluateClassifier(), TauNNId::EvaluateNN(), JetId::EvaluateNN(), TSGForOIDNN::evaluateRegressor(), DisplacedRegionSeedingVertexProducer::getDiscriminatorValue(), DeepTauId::getPartialPredictions(), DeepTauId::getPredictionsV2(), L2TauNNProducerAlpaka::getTauScore(), L2TauNNProducer::getTauScore(), l1tVertexFinder::VertexFinder::NNVtxEmulation(), L1TrackVertexAssociationProducer::NNTrackWordSelector::operator()(), DeepMETProducer::produce(), L1NNCaloTauProducer::produce(), BaseMVAValueMapProducer< pat::Muon >::produce(), L1NNCaloTauEmulator::produce(), run(), DTOccupancyTestML::runOccupancyTest(), DeepCoreSeedGenerator::SeedEvaluation(), and HGCalConcentratorAutoEncoderImpl::select().
|
inline |
Definition at line 119 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 294 of file TensorFlow.cc.
References PixelMapPlotter::inputs, jetsAK4_CHS_cff::outputNames, PatBasicFWLiteJetAnalyzer_Selector_cfg::outputs, and run().
|
inline |
Definition at line 139 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 308 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 159 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 327 of file TensorFlow.cc.
References jetsAK4_CHS_cff::outputNames, PatBasicFWLiteJetAnalyzer_Selector_cfg::outputs, and run().
|
inline |
Definition at line 178 of file TensorFlow.h.
References jetsAK4_CHS_cff::outputNames, PatBasicFWLiteJetAnalyzer_Selector_cfg::outputs, and run().