Classes | |
class | NTSession |
class | NTSessionFactory |
class | NTSessionRegistrar |
class | TBBSession |
class | TBBSessionFactory |
class | TBBSessionRegistrar |
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 (MetaGraphDef *metaGraph, const std::string &exportDir, SessionOptions &sessionOptions) |
Session * | createSession (MetaGraphDef *metaGraph, const std::string &exportDir, int nThreads=1) |
Session * | createSession (GraphDef *graphDef, SessionOptions &sessionOptions) |
Session * | createSession (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) |
void | run (Session *session, const NamedTensorList &inputs, const std::vector< std::string > &outputNames, const std::vector< std::string > &targetNodes, std::vector< Tensor > *outputs) |
void | run (Session *session, const std::vector< std::string > &inputNames, const std::vector< Tensor > &inputTensors, const std::vector< std::string > &outputNames, const std::vector< std::string > &targetNodes, std::vector< Tensor > *outputs) |
void | run (Session *session, const NamedTensorList &inputs, const std::vector< std::string > &outputNames, std::vector< Tensor > *outputs) |
void | run (Session *session, const std::vector< std::string > &inputNames, const std::vector< Tensor > &inputTensors, const std::vector< std::string > &outputNames, std::vector< Tensor > *outputs) |
void | setLogging (const std::string &level="3") |
void | setThreading (SessionOptions &sessionOptions, int nThreads, const std::string &singleThreadPool="no_threads") |
Variables | |
static NTSessionRegistrar | registrar |
static TBBSessionRegistrar | registrar |
typedef std::pair<std::string, Tensor> tensorflow::NamedTensor |
Definition at line 25 of file TensorFlow.h.
typedef std::vector<NamedTensor> tensorflow::NamedTensorList |
Definition at line 26 of file TensorFlow.h.
bool tensorflow::closeSession | ( | Session *& | session | ) |
Definition at line 193 of file TensorFlow.cc.
References dataDML::session, btagGenBb_cfi::Status, and mps_update::status.
Referenced by DeepFlavourTFJetTagsProducer::~DeepFlavourTFJetTagsProducer().
Session * tensorflow::createSession | ( | SessionOptions & | sessionOptions | ) |
Definition at line 87 of file TensorFlow.cc.
References Exception, dataDML::session, btagGenBb_cfi::Status, and mps_update::status.
Referenced by createSession(), and DeepFlavourTFJetTagsProducer::DeepFlavourTFJetTagsProducer().
Session * tensorflow::createSession | ( | int | nThreads = 1 | ) |
Definition at line 104 of file TensorFlow.cc.
References createSession(), and setThreading().
Session * tensorflow::createSession | ( | MetaGraphDef * | metaGraph, |
const std::string & | exportDir, | ||
SessionOptions & | sessionOptions | ||
) |
Definition at line 113 of file TensorFlow.cc.
References createSession(), Default, Exception, convertSQLiteXML::ok, dataDML::session, btagGenBb_cfi::Status, mps_update::status, and AlCaHLTBitMon_QueryRunRegistry::string.
Session * tensorflow::createSession | ( | MetaGraphDef * | metaGraph, |
const std::string & | exportDir, | ||
int | nThreads = 1 |
||
) |
Definition at line 156 of file TensorFlow.cc.
References createSession(), and setThreading().
Session * tensorflow::createSession | ( | GraphDef * | graphDef, |
SessionOptions & | sessionOptions | ||
) |
Definition at line 165 of file TensorFlow.cc.
References createSession(), Exception, dataDML::session, btagGenBb_cfi::Status, and mps_update::status.
Session * tensorflow::createSession | ( | GraphDef * | graphDef, |
int | nThreads = 1 |
||
) |
Definition at line 184 of file TensorFlow.cc.
References createSession(), and setThreading().
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 DeepFlavourTFJetTagsProducer::initializeGlobalCache().
MetaGraphDef * tensorflow::loadMetaGraph | ( | const std::string & | exportDir, |
const std::string & | tag, | ||
SessionOptions & | sessionOptions | ||
) |
Definition at line 39 of file TensorFlow.cc.
References Exception, btagGenBb_cfi::Status, and mps_update::status.
Referenced by loadMetaGraph().
MetaGraphDef * tensorflow::loadMetaGraph | ( | const std::string & | exportDir, |
const std::string & | tag = kSavedModelTagServe , |
||
int | nThreads = 1 |
||
) |
Definition at line 59 of file TensorFlow.cc.
References loadMetaGraph(), and setThreading().
void tensorflow::run | ( | Session * | session, |
const NamedTensorList & | inputs, | ||
const std::vector< std::string > & | outputNames, | ||
const std::vector< std::string > & | targetNodes, | ||
std::vector< Tensor > * | outputs | ||
) |
Definition at line 210 of file TensorFlow.cc.
References Exception, btagGenBb_cfi::Status, and mps_update::status.
Referenced by DeepFlavourTFJetTagsProducer::produce(), and run().
void tensorflow::run | ( | Session * | session, |
const std::vector< std::string > & | inputNames, | ||
const std::vector< Tensor > & | inputTensors, | ||
const std::vector< std::string > & | outputNames, | ||
const std::vector< std::string > & | targetNodes, | ||
std::vector< Tensor > * | outputs | ||
) |
Definition at line 228 of file TensorFlow.cc.
References Exception, mps_fire::i, PatBasicFWLiteJetAnalyzer_Selector_cfg::inputs, and run().
void tensorflow::run | ( | Session * | session, |
const NamedTensorList & | inputs, | ||
const std::vector< std::string > & | outputNames, | ||
std::vector< Tensor > * | outputs | ||
) |
Definition at line 246 of file TensorFlow.cc.
References PatBasicFWLiteJetAnalyzer_Selector_cfg::outputs, and run().
void tensorflow::run | ( | Session * | session, |
const std::vector< std::string > & | inputNames, | ||
const std::vector< Tensor > & | inputTensors, | ||
const std::vector< std::string > & | outputNames, | ||
std::vector< Tensor > * | outputs | ||
) |
Definition at line 252 of file TensorFlow.cc.
References PatBasicFWLiteJetAnalyzer_Selector_cfg::outputs, and run().
void tensorflow::setLogging | ( | const std::string & | level = "3" | ) |
Definition at line 14 of file TensorFlow.cc.
Referenced by DeepFlavourTFJetTagsProducer::initializeGlobalCache().
void tensorflow::setThreading | ( | SessionOptions & | sessionOptions, |
int | nThreads, | ||
const std::string & | singleThreadPool = "no_threads" |
||
) |
Definition at line 19 of file TensorFlow.cc.
References Exception.
Referenced by createSession(), DeepFlavourTFJetTagsProducer::DeepFlavourTFJetTagsProducer(), and loadMetaGraph().
|
static |
Definition at line 173 of file NTSession.cc.
|
static |
Definition at line 174 of file TBBSession.cc.