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

Method deserializePlugin

plugin/regionPlugin/regionPlugin.cpp:548–564  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

546}
547
548IPluginV2Ext* RegionPluginCreator::deserializePlugin(
549 char const* name, void const* serialData, size_t serialLength) noexcept
550{
551 try
552 {
553 // This object will be deleted when the network is destroyed, which will
554 // call Region::destroy()
555 Region* obj = new Region(serialData, serialLength);
556 obj->setPluginNamespace(mNamespace.c_str());
557 return obj;
558 }
559 catch (std::exception const& e)
560 {
561 caughtError(e);
562 }
563 return nullptr;
564}
565} // namespace plugin
566} // namespace nvinfer1

Callers

nothing calls this directly

Calls 3

caughtErrorFunction · 0.85
c_strMethod · 0.80
setPluginNamespaceMethod · 0.45

Tested by

no test coverage detected