Base class for implementations of the BackendContext interface.
Implements functionality common to all backends.
Definition at line 208 of file nvdsinfer_backend.h.
Public Member Functions | |
~TrtBackendContext () | |
virtual NvDsInferStatus | initialize ()=0 |
virtual NvDsInferStatus | enqueueBuffer (const std::shared_ptr< InferBatchBuffer > &buffer, CudaStream &stream, CudaEvent *consumeEvent)=0 |
Protected Member Functions | |
TrtBackendContext (UniquePtrWDestroy< nvinfer1::IExecutionContext > &&ctx, std::shared_ptr< TrtEngine > engine) | |
int | getLayerIdx (const std::string &bindingName) override |
int | getNumBoundLayers () override |
const NvDsInferBatchDimsLayerInfo & | getLayerInfo (int bindingIdx) override |
bool | canSupportBatchDims (int bindingIdx, const NvDsInferBatchDims &batchDims) override |
virtual NvDsInferBatchDims | getMaxBatchDims (int bindingIdx) override |
virtual NvDsInferBatchDims | getMinBatchDims (int bindingIdx) override |
virtual NvDsInferBatchDims | getOptBatchDims (int bindingIdx) override |
Protected Attributes | |
UniquePtrWDestroy< nvinfer1::IExecutionContext > | m_Context |
std::shared_ptr< TrtEngine > | m_CudaEngine |
std::vector< NvDsInferBatchDimsLayerInfo > | m_AllLayers |
int | m_GpuId = -1 |
Static Protected Attributes | |
static std::mutex | sDLAExecutionMutex |
nvdsinfer::TrtBackendContext::~TrtBackendContext | ( | ) |
|
protected |
|
overrideprotectedvirtual |
Implements nvdsinfer::BackendContext.
Reimplemented in nvdsinfer::ImplicitTrtBackendContext.
|
pure virtualinherited |
Implemented in nvdsinfer::DlaFullDimTrtBackendContext, and nvdsinfer::DlaImplicitTrtBackendContext.
|
overrideprotectedvirtual |
Implements nvdsinfer::BackendContext.
|
inlineoverrideprotectedvirtual |
Implements nvdsinfer::BackendContext.
Definition at line 220 of file nvdsinfer_backend.h.
References m_AllLayers.
|
inlineoverrideprotectedvirtual |
Implements nvdsinfer::BackendContext.
Definition at line 229 of file nvdsinfer_backend.h.
References m_AllLayers.
|
inlineoverrideprotectedvirtual |
Implements nvdsinfer::BackendContext.
Definition at line 234 of file nvdsinfer_backend.h.
References m_AllLayers.
|
overrideprotectedvirtual |
Implements nvdsinfer::BackendContext.
|
inlineoverrideprotectedvirtual |
Implements nvdsinfer::BackendContext.
Definition at line 239 of file nvdsinfer_backend.h.
References m_AllLayers.
|
pure virtualinherited |
|
protected |
Definition at line 248 of file nvdsinfer_backend.h.
Referenced by getLayerInfo(), getMaxBatchDims(), getMinBatchDims(), and getOptBatchDims().
|
protected |
Definition at line 246 of file nvdsinfer_backend.h.
|
protected |
Definition at line 247 of file nvdsinfer_backend.h.
|
protected |
Definition at line 250 of file nvdsinfer_backend.h.
|
staticprotected |
Definition at line 252 of file nvdsinfer_backend.h.