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

Method deserializePlugin

plugin/cropAndResizePlugin/cropAndResizePlugin.cpp:621–636  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

619}
620
621IPluginV2Ext* CropAndResizePluginCreator::deserializePlugin(
622 char const* /* name */, void const* serialData, size_t serialLength) noexcept
623{
624 try
625 {
626 // This object will be deleted when the network is destroyed,
627 IPluginV2Ext* plugin = new CropAndResizePlugin(serialData, serialLength);
628 plugin->setPluginNamespace(mNamespace.c_str());
629 return plugin;
630 }
631 catch (std::exception const& e)
632 {
633 caughtError(e);
634 }
635 return nullptr;
636}
637
638IPluginV2DynamicExt* CropAndResizeDynamicPluginCreator::deserializePlugin(
639 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