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

Method deserializePlugin

plugin/normalizePlugin/normalizePlugin.cpp:368–384  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

366}
367
368IPluginV2Ext* NormalizePluginCreator::deserializePlugin(
369 char const* name, void const* serialData, size_t serialLength) noexcept
370{
371 try
372 {
373 // This object will be deleted when the network is destroyed, which will
374 // call Normalize::destroy()
375 Normalize* obj = new Normalize(serialData, serialLength);
376 obj->setPluginNamespace(mNamespace.c_str());
377 return obj;
378 }
379 catch (std::exception const& e)
380 {
381 caughtError(e);
382 }
383 return nullptr;
384}

Callers

nothing calls this directly

Calls 3

caughtErrorFunction · 0.85
c_strMethod · 0.80
setPluginNamespaceMethod · 0.45

Tested by

no test coverage detected