NVIDIA DeepStream SDK API Reference

6.4 Release
nvdsinfer::DlaFullDimTrtBackendContext Class Reference

Detailed Description

Backend context for implicit batch dimension network inferencing on DLA.

Definition at line 318 of file nvdsinfer_backend.h.

Inheritance diagram for nvdsinfer::DlaFullDimTrtBackendContext:
Collaboration diagram for nvdsinfer::DlaFullDimTrtBackendContext:

Public Member Functions

 DlaFullDimTrtBackendContext (UniquePtrWDestroy< nvinfer1::IExecutionContext > &&ctx, std::shared_ptr< TrtEngine > engine, int profile=0)
 
NvDsInferStatus enqueueBuffer (const std::shared_ptr< InferBatchBuffer > &buffer, CudaStream &stream, CudaEvent *consumeEvent) override
 

Protected Member Functions

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

const int m_ProfileIndex = 0
 
UniquePtrWDestroy< nvinfer1::IExecutionContext > m_Context
 
std::shared_ptr< TrtEnginem_CudaEngine
 
std::vector< NvDsInferBatchDimsLayerInfo > m_AllLayers
 
int m_GpuId = -1
 

Static Protected Attributes

static std::mutex sDLAExecutionMutex
 

Constructor & Destructor Documentation

◆ DlaFullDimTrtBackendContext()

nvdsinfer::DlaFullDimTrtBackendContext::DlaFullDimTrtBackendContext ( UniquePtrWDestroy< nvinfer1::IExecutionContext > &&  ctx,
std::shared_ptr< TrtEngine engine,
int  profile = 0 
)

Member Function Documentation

◆ canSupportBatchDims()

bool nvdsinfer::TrtBackendContext::canSupportBatchDims ( int  bindingIdx,
const NvDsInferBatchDims &  batchDims 
)
overrideprotectedvirtualinherited

◆ enqueueBuffer()

NvDsInferStatus nvdsinfer::DlaFullDimTrtBackendContext::enqueueBuffer ( const std::shared_ptr< InferBatchBuffer > &  buffer,
CudaStream stream,
CudaEvent consumeEvent 
)
overridevirtual

◆ getLayerIdx()

int nvdsinfer::TrtBackendContext::getLayerIdx ( const std::string &  bindingName)
overrideprotectedvirtualinherited

◆ getLayerInfo()

const NvDsInferBatchDimsLayerInfo& nvdsinfer::TrtBackendContext::getLayerInfo ( int  bindingIdx)
inlineoverrideprotectedvirtualinherited

◆ getMaxBatchDims()

virtual NvDsInferBatchDims nvdsinfer::TrtBackendContext::getMaxBatchDims ( int  bindingIdx)
inlineoverrideprotectedvirtualinherited

◆ getMinBatchDims()

virtual NvDsInferBatchDims nvdsinfer::TrtBackendContext::getMinBatchDims ( int  bindingIdx)
inlineoverrideprotectedvirtualinherited

◆ getNumBoundLayers()

int nvdsinfer::TrtBackendContext::getNumBoundLayers ( )
overrideprotectedvirtualinherited

◆ getOptBatchDims()

virtual NvDsInferBatchDims nvdsinfer::TrtBackendContext::getOptBatchDims ( int  bindingIdx)
inlineoverrideprotectedvirtualinherited

Field Documentation

◆ m_AllLayers

std::vector<NvDsInferBatchDimsLayerInfo> nvdsinfer::TrtBackendContext::m_AllLayers
protectedinherited

◆ m_Context

UniquePtrWDestroy<nvinfer1::IExecutionContext> nvdsinfer::TrtBackendContext::m_Context
protectedinherited

Definition at line 246 of file nvdsinfer_backend.h.

◆ m_CudaEngine

std::shared_ptr<TrtEngine> nvdsinfer::TrtBackendContext::m_CudaEngine
protectedinherited

Definition at line 247 of file nvdsinfer_backend.h.

◆ m_GpuId

int nvdsinfer::TrtBackendContext::m_GpuId = -1
protectedinherited

Definition at line 250 of file nvdsinfer_backend.h.

◆ m_ProfileIndex

const int nvdsinfer::FullDimTrtBackendContext::m_ProfileIndex = 0
protectedinherited

Definition at line 298 of file nvdsinfer_backend.h.

◆ sDLAExecutionMutex

std::mutex nvdsinfer::TrtBackendContext::sDLAExecutionMutex
staticprotectedinherited

Definition at line 252 of file nvdsinfer_backend.h.


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