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

Method deserializePlugin

plugin/gridAnchorPlugin/gridAnchorPlugin.cpp:515–531  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

513}
514
515IPluginV2Ext* GridAnchorBasePluginCreator::deserializePlugin(
516 char const* name, void const* serialData, size_t serialLength) noexcept
517{
518 try
519 {
520 // This object will be deleted when the network is destroyed, which will
521 // call GridAnchor::destroy()
522 GridAnchorGenerator* obj = new GridAnchorGenerator(serialData, serialLength, mPluginName.c_str());
523 obj->setPluginNamespace(mNamespace.c_str());
524 return obj;
525 }
526 catch (std::exception const& e)
527 {
528 caughtError(e);
529 }
530 return nullptr;
531}
532
533GridAnchorPluginCreator::GridAnchorPluginCreator()
534{

Callers

nothing calls this directly

Calls 3

caughtErrorFunction · 0.85
c_strMethod · 0.80
setPluginNamespaceMethod · 0.45

Tested by

no test coverage detected