CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
TfGraphDefWrapper Class Reference

#include <TfGraphDefWrapper.h>

Public Member Functions

const tensorflow::Session * getSession () const
 
TfGraphDefWrapperoperator= (const TfGraphDefWrapper &)=delete
 
TfGraphDefWrapperoperator= (TfGraphDefWrapper &&)=delete
 
 TfGraphDefWrapper (const TfGraphDefWrapper &)=delete
 
 TfGraphDefWrapper (tensorflow::Session *, tensorflow::GraphDef *)
 
 TfGraphDefWrapper (TfGraphDefWrapper &&)=delete
 
 ~TfGraphDefWrapper ()
 

Private Attributes

std::unique_ptr< tensorflow::GraphDef > graph_
 
tensorflow::Session * session_
 

Detailed Description

Definition at line 6 of file TfGraphDefWrapper.h.

Constructor & Destructor Documentation

◆ TfGraphDefWrapper() [1/3]

TfGraphDefWrapper::TfGraphDefWrapper ( tensorflow::Session *  session,
tensorflow::GraphDef *  graph 
)

Definition at line 3 of file TfGraphDefWrapper.cc.

4  : session_(session), graph_(graph) {}

◆ ~TfGraphDefWrapper()

TfGraphDefWrapper::~TfGraphDefWrapper ( )

Definition at line 7 of file TfGraphDefWrapper.cc.

References tensorflow::closeSession(), and session_.

◆ TfGraphDefWrapper() [2/3]

TfGraphDefWrapper::TfGraphDefWrapper ( const TfGraphDefWrapper )
delete

◆ TfGraphDefWrapper() [3/3]

TfGraphDefWrapper::TfGraphDefWrapper ( TfGraphDefWrapper &&  )
delete

Member Function Documentation

◆ getSession()

const tensorflow::Session * TfGraphDefWrapper::getSession ( ) const

Definition at line 5 of file TfGraphDefWrapper.cc.

5 { return session_; }

References session_.

◆ operator=() [1/2]

TfGraphDefWrapper& TfGraphDefWrapper::operator= ( const TfGraphDefWrapper )
delete

◆ operator=() [2/2]

TfGraphDefWrapper& TfGraphDefWrapper::operator= ( TfGraphDefWrapper &&  )
delete

Member Data Documentation

◆ graph_

std::unique_ptr<tensorflow::GraphDef> TfGraphDefWrapper::graph_
private

Definition at line 18 of file TfGraphDefWrapper.h.

◆ session_

tensorflow::Session* TfGraphDefWrapper::session_
private

Definition at line 17 of file TfGraphDefWrapper.h.

Referenced by getSession(), and ~TfGraphDefWrapper().

tensorflow::closeSession
bool closeSession(Session *&session)
Definition: TensorFlow.cc:198
TfGraphDefWrapper::session_
tensorflow::Session * session_
Definition: TfGraphDefWrapper.h:17
TfGraphDefWrapper::graph_
std::unique_ptr< tensorflow::GraphDef > graph_
Definition: TfGraphDefWrapper.h:18