NVIDIA DeepStream SDK API Reference

9.0 Release
nvdsinfer::FullDimTrtBackendContext Class Reference

Detailed Description

Backend context for full dimensions network.

Definition at line 258 of file sources/libs/nvdsinfer/nvdsinfer_backend.h.

Inheritance diagram for nvdsinfer::FullDimTrtBackendContext:
Collaboration diagram for nvdsinfer::FullDimTrtBackendContext:

Public Member Functions

 FullDimTrtBackendContext (std::unique_ptr< nvinfer1::IExecutionContext > &&ctx, std::shared_ptr< TrtEngine > engine, int profile=0)
 
 FullDimTrtBackendContext (std::unique_ptr< nvinfer1::IExecutionContext > &&ctx, std::shared_ptr< TrtEngine > engine, int profile=0)
 

Protected Member Functions

bool isOutputLayer (const std::string &bindingName) override
 
bool isOutputLayer (const std::string &bindingName) override
 
int getNumBoundLayers () override
 
int getNumBoundLayers () override
 
const NvDsInferBatchDimsLayerInfo & getLayerInfo (int bindingIdx) override
 
const NvDsInferBatchDimsLayerInfo & getLayerInfo (int bindingIdx) override
 
bool canSupportBatchDims (int bindingIdx, const NvDsInferBatchDims &batchDims) override
 
bool canSupportBatchDims (int bindingIdx, const NvDsInferBatchDims &batchDims) override
 
virtual NvDsInferBatchDims getMaxBatchDims (int bindingIdx) override
 
virtual NvDsInferBatchDims getMaxBatchDims (int bindingIdx) override
 
virtual NvDsInferBatchDims getMinBatchDims (int bindingIdx) override
 
virtual NvDsInferBatchDims getMinBatchDims (int bindingIdx) override
 
virtual NvDsInferBatchDims getOptBatchDims (int bindingIdx) override
 
virtual NvDsInferBatchDims getOptBatchDims (int bindingIdx) override
 

Protected Attributes

const int m_ProfileIndex = 0
 
std::unique_ptr< 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

◆ FullDimTrtBackendContext() [1/2]

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

◆ FullDimTrtBackendContext() [2/2]

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

Member Function Documentation

◆ canSupportBatchDims() [1/2]

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

◆ canSupportBatchDims() [2/2]

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

◆ getLayerInfo() [1/2]

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

◆ getLayerInfo() [2/2]

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

◆ getMaxBatchDims() [1/2]

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

◆ getMaxBatchDims() [2/2]

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

◆ getMinBatchDims() [1/2]

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

◆ getMinBatchDims() [2/2]

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

◆ getNumBoundLayers() [1/2]

int nvdsinfer::TrtBackendContext::getNumBoundLayers ( )
overrideprotectedvirtualinherited

◆ getNumBoundLayers() [2/2]

int nvdsinfer::TrtBackendContext::getNumBoundLayers ( )
overrideprotectedvirtualinherited

◆ getOptBatchDims() [1/2]

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

◆ getOptBatchDims() [2/2]

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

◆ isOutputLayer() [1/2]

bool nvdsinfer::TrtBackendContext::isOutputLayer ( const std::string &  bindingName)
overrideprotectedvirtualinherited

◆ isOutputLayer() [2/2]

bool nvdsinfer::TrtBackendContext::isOutputLayer ( const std::string &  bindingName)
overrideprotectedvirtualinherited

Field Documentation

◆ m_AllLayers

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

◆ m_Context

std::unique_ptr< nvinfer1::IExecutionContext > nvdsinfer::TrtBackendContext::m_Context
protectedinherited

Definition at line 246 of file sources/libs/nvdsinfer/nvdsinfer_backend.h.

◆ m_CudaEngine

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

Definition at line 247 of file sources/libs/nvdsinfer/nvdsinfer_backend.h.

◆ m_GpuId

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

Definition at line 250 of file sources/libs/nvdsinfer/nvdsinfer_backend.h.

◆ m_ProfileIndex

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

Definition at line 274 of file sources/libs/nvdsinfer/nvdsinfer_backend.h.

◆ sDLAExecutionMutex

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

Definition at line 252 of file sources/libs/nvdsinfer/nvdsinfer_backend.h.


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