CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
BJetTFCache Struct Reference

#include <JetId.h>

Public Member Functions

 BJetTFCache (const std::string &graphPath)
 
 ~BJetTFCache ()
 

Public Attributes

std::unique_ptr< tensorflow::GraphDef > graphDef
 
tensorflow::Session * session
 

Detailed Description

Definition at line 14 of file JetId.h.

Constructor & Destructor Documentation

◆ BJetTFCache()

BJetTFCache::BJetTFCache ( const std::string &  graphPath)
inline

Definition at line 15 of file JetId.h.

References tensorflow::createSession(), graphDef, and session.

17  }
GraphDef * loadGraphDef(const std::string &pbFile)
Definition: TensorFlow.cc:119
std::unique_ptr< tensorflow::GraphDef > graphDef
Definition: JetId.h:19
Session * createSession()
Definition: TensorFlow.cc:136
tensorflow::Session * session
Definition: JetId.h:20

◆ ~BJetTFCache()

BJetTFCache::~BJetTFCache ( )
inline

Definition at line 18 of file JetId.h.

References tensorflow::closeSession(), and session.

bool closeSession(Session *&session)
Definition: TensorFlow.cc:233
tensorflow::Session * session
Definition: JetId.h:20

Member Data Documentation

◆ graphDef

std::unique_ptr<tensorflow::GraphDef> BJetTFCache::graphDef

Definition at line 19 of file JetId.h.

Referenced by BJetTFCache().

◆ session

tensorflow::Session* BJetTFCache::session

Definition at line 20 of file JetId.h.

Referenced by BJetTFCache(), and ~BJetTFCache().