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

Method deserializePlugin

plugin/priorBoxPlugin/priorBoxPlugin.cpp:525–541  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

523}
524
525IPluginV2Ext* PriorBoxPluginCreator::deserializePlugin(
526 char const* /*name*/, void const* serialData, size_t serialLength) noexcept
527{
528 try
529 {
530 // This object will be deleted when the network is destroyed, which will
531 // call PriorBox::destroy()
532 PriorBox* obj = new PriorBox(serialData, serialLength);
533 obj->setPluginNamespace(mNamespace.c_str());
534 return obj;
535 }
536 catch (std::exception const& e)
537 {
538 caughtError(e);
539 }
540 return nullptr;
541}

Callers

nothing calls this directly

Calls 3

caughtErrorFunction · 0.85
c_strMethod · 0.80
setPluginNamespaceMethod · 0.45

Tested by

no test coverage detected