L4T Multimedia API Reference

27.1 Release

 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GIE_Context Class Reference

Detailed Description

Definition at line 120 of file gie_inference.h.

Public Member Functions

int getNetWidth () const
 Net related parameter. More...
 
int getNetHeight () const
 
int getBatchSize () const
 
int getChannel () const
 
int getModelClassCnt () const
 
void *& getBuffer (const int &index)
 Buffer is allocated in GIE_Conxtex, Expose this interface for inputing data. More...
 
float *& getInputBuf ()
 
int getNumGieInstances () const
 
void setForcedFp32 (const bool &forced_fp32)
 
void setDumpResult (const bool &dump_result)
 
void setGieProfilerEnabled (const bool &enable_gie_profiler)
 
int getFilterNum () const
 
void setFilterNum (const unsigned int &filter_num)
 
 GIE_Context ()
 
void setModelIndex (int modelIndex)
 
void buildGieContext (const string &deployfile, const string &modelfile, bool bUseCPUBuf=false)
 
void doInference (queue< vector< cv::Rect > > *rectList_queue, float *input=NULL)
 
void destroyGieContext (bool bUseCPUBuf=false)
 
 ~GIE_Context ()
 

Constructor & Destructor Documentation

GIE_Context::GIE_Context ( )
GIE_Context::~GIE_Context ( )

Member Function Documentation

void GIE_Context::buildGieContext ( const string &  deployfile,
const string &  modelfile,
bool  bUseCPUBuf = false 
)
void GIE_Context::destroyGieContext ( bool  bUseCPUBuf = false)
void GIE_Context::doInference ( queue< vector< cv::Rect > > *  rectList_queue,
float *  input = NULL 
)
int GIE_Context::getBatchSize ( ) const
void*& GIE_Context::getBuffer ( const int &  index)

Buffer is allocated in GIE_Conxtex, Expose this interface for inputing data.

int GIE_Context::getChannel ( ) const
int GIE_Context::getFilterNum ( ) const
float*& GIE_Context::getInputBuf ( )
int GIE_Context::getModelClassCnt ( ) const
int GIE_Context::getNetHeight ( ) const
int GIE_Context::getNetWidth ( ) const

Net related parameter.

int GIE_Context::getNumGieInstances ( ) const
void GIE_Context::setDumpResult ( const bool &  dump_result)
void GIE_Context::setFilterNum ( const unsigned int &  filter_num)
void GIE_Context::setForcedFp32 ( const bool &  forced_fp32)
void GIE_Context::setGieProfilerEnabled ( const bool &  enable_gie_profiler)
void GIE_Context::setModelIndex ( int  modelIndex)

The documentation for this class was generated from the following file: