Backend context for implicit batch dimension network.
Definition at line 258 of file nvdsinfer_backend.h.
Public Member Functions | |
ImplicitTrtBackendContext (UniquePtrWDestroy< nvinfer1::IExecutionContext > &&ctx, std::shared_ptr< TrtEngine > engine) | |
Protected Member Functions | |
bool | canSupportBatchDims (int bindingIdx, const NvDsInferBatchDims &batchDims) override |
int | getLayerIdx (const std::string &bindingName) override |
int | getNumBoundLayers () override |
const NvDsInferBatchDimsLayerInfo & | getLayerInfo (int bindingIdx) override |
virtual NvDsInferBatchDims | getMaxBatchDims (int bindingIdx) override |
virtual NvDsInferBatchDims | getMinBatchDims (int bindingIdx) override |
virtual NvDsInferBatchDims | getOptBatchDims (int bindingIdx) override |
Protected Attributes | |
int | m_MaxBatchSize = 0 |
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::ImplicitTrtBackendContext::ImplicitTrtBackendContext | ( | UniquePtrWDestroy< nvinfer1::IExecutionContext > && | ctx, |
std::shared_ptr< TrtEngine > | engine | ||
) |
|
overrideprotectedvirtual |
Reimplemented from nvdsinfer::TrtBackendContext.
|
overrideprotectedvirtualinherited |
Implements nvdsinfer::BackendContext.
|
inlineoverrideprotectedvirtualinherited |
Implements nvdsinfer::BackendContext.
Definition at line 220 of file nvdsinfer_backend.h.
References nvdsinfer::TrtBackendContext::m_AllLayers.
|
inlineoverrideprotectedvirtualinherited |
Implements nvdsinfer::BackendContext.
Definition at line 229 of file nvdsinfer_backend.h.
References nvdsinfer::TrtBackendContext::m_AllLayers.
|
inlineoverrideprotectedvirtualinherited |
Implements nvdsinfer::BackendContext.
Definition at line 234 of file nvdsinfer_backend.h.
References nvdsinfer::TrtBackendContext::m_AllLayers.
|
overrideprotectedvirtualinherited |
Implements nvdsinfer::BackendContext.
|
inlineoverrideprotectedvirtualinherited |
Implements nvdsinfer::BackendContext.
Definition at line 239 of file nvdsinfer_backend.h.
References nvdsinfer::TrtBackendContext::m_AllLayers.
|
protectedinherited |
Definition at line 248 of file nvdsinfer_backend.h.
Referenced by nvdsinfer::TrtBackendContext::getLayerInfo(), nvdsinfer::TrtBackendContext::getMaxBatchDims(), nvdsinfer::TrtBackendContext::getMinBatchDims(), and nvdsinfer::TrtBackendContext::getOptBatchDims().
|
protectedinherited |
Definition at line 246 of file nvdsinfer_backend.h.
|
protectedinherited |
Definition at line 247 of file nvdsinfer_backend.h.
|
protectedinherited |
Definition at line 250 of file nvdsinfer_backend.h.
|
protected |
Definition at line 276 of file nvdsinfer_backend.h.
|
staticprotectedinherited |
Definition at line 252 of file nvdsinfer_backend.h.