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

Method deserializePlugin

plugin/flattenConcat/flattenConcat.cpp:400–416  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

398}
399
400IPluginV2Ext* FlattenConcatPluginCreator::deserializePlugin(
401 char const* name, void const* serialData, size_t serialLength) noexcept
402{
403 try
404 {
405 // This object will be deleted when the network is destroyed, which will
406 // call Concat::destroy()
407 IPluginV2Ext* plugin = new FlattenConcat(serialData, serialLength);
408 plugin->setPluginNamespace(mNamespace.c_str());
409 return plugin;
410 }
411 catch (std::exception const& e)
412 {
413 caughtError(e);
414 }
415 return nullptr;
416}

Callers

nothing calls this directly

Calls 3

caughtErrorFunction · 0.85
c_strMethod · 0.80
setPluginNamespaceMethod · 0.45

Tested by

no test coverage detected