Implementation of ModelParser for custom models.
This implementation will look for the function symbol "NvDsInferCreateModelParser" in the custom library handle passed to it. It will call the NvDsInferCreateModelParser to get an instance of the IModelParser implementation required to parse the user's custom model.
Definition at line 160 of file nvdsinfer_model_builder.h.
Public Member Functions | |
CustomModelParser (const NvDsInferContextInitParams &initParams, const std::shared_ptr< DlLibHandle > &handle) | |
~CustomModelParser () | |
bool | isValid () const override |
const char * | getModelName () const override |
NvDsInferStatus | parseModel (nvinfer1::INetworkDefinition &network) override |
bool | hasFullDimsSupported () const override |
Protected Attributes | |
NvDsInferContextInitParams | m_ModelParams |
std::shared_ptr< DlLibHandle > | m_LibHandle |
nvdsinfer::CustomModelParser::CustomModelParser | ( | const NvDsInferContextInitParams & | initParams, |
const std::shared_ptr< DlLibHandle > & | handle | ||
) |
|
inline |
Definition at line 166 of file nvdsinfer_model_builder.h.
|
inlineoverride |
Definition at line 173 of file nvdsinfer_model_builder.h.
References isValid(), and nvdsinfer::safeStr().
|
inlineoverride |
Definition at line 179 of file nvdsinfer_model_builder.h.
|
inlineoverridevirtual |
Implements nvdsinfer::BaseModelParser.
Definition at line 168 of file nvdsinfer_model_builder.h.
Referenced by getModelName().
|
override |
|
protectedinherited |
Definition at line 65 of file nvdsinfer_model_builder.h.
|
protectedinherited |
Definition at line 64 of file nvdsinfer_model_builder.h.