MCPcopy Create free account
hub / github.com/NVIDIA/TensorRT / deserializePlugin

Method deserializePlugin

plugin/nmsPlugin/nmsPlugin.cpp:834–850  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

832}
833
834IPluginV2Ext* NMSPluginCreator::deserializePlugin(
835 char const* name, void const* serialData, size_t serialLength) noexcept
836{
837 try
838 {
839 // This object will be deleted when the network is destroyed, which will
840 // call NMS::destroy()
841 DetectionOutput* obj = new DetectionOutput(serialData, serialLength);
842 obj->setPluginNamespace(mNamespace.c_str());
843 return obj;
844 }
845 catch (std::exception const& e)
846 {
847 caughtError(e);
848 }
849 return nullptr;
850}
851
852IPluginV2DynamicExt* NMSDynamicPluginCreator::deserializePlugin(
853 char const* name, void const* serialData, size_t serialLength) noexcept

Callers

nothing calls this directly

Calls 3

caughtErrorFunction · 0.85
c_strMethod · 0.80
setPluginNamespaceMethod · 0.45

Tested by

no test coverage detected