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

Method deserializePlugin

plugin/efficientNMSPlugin/efficientNMSPlugin.cpp:512–528  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

510}
511
512IPluginV2DynamicExt* EfficientNMSPluginCreator::deserializePlugin(
513 char const* name, void const* serialData, size_t serialLength) noexcept
514{
515 try
516 {
517 // This object will be deleted when the network is destroyed, which will
518 // call EfficientNMSPlugin::destroy()
519 auto* plugin = new EfficientNMSPlugin(serialData, serialLength);
520 plugin->setPluginNamespace(mNamespace.c_str());
521 return plugin;
522 }
523 catch (std::exception const& e)
524 {
525 caughtError(e);
526 }
527 return nullptr;
528}
529
530// ONNX NonMaxSuppression Op Compatibility
531

Callers

nothing calls this directly

Calls 3

caughtErrorFunction · 0.85
c_strMethod · 0.80
setPluginNamespaceMethod · 0.45

Tested by

no test coverage detected