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

Method deserializePlugin

plugin/batchedNMSPlugin/batchedNMSPlugin.cpp:848–864  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

846}
847
848IPluginV2Ext* BatchedNMSPluginCreator::deserializePlugin(
849 char const* name, void const* serialData, size_t serialLength) noexcept
850{
851 try
852 {
853 // This object will be deleted when the network is destroyed, which will
854 // call NMS::destroy()
855 auto* plugin = new BatchedNMSPlugin(serialData, serialLength);
856 plugin->setPluginNamespace(mNamespace.c_str());
857 return plugin;
858 }
859 catch (std::exception const& e)
860 {
861 caughtError(e);
862 }
863 return nullptr;
864}
865
866IPluginV2DynamicExt* BatchedNMSDynamicPluginCreator::deserializePlugin(
867 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