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

Method deserializePlugin

plugin/reorgPlugin/reorgPlugin.cpp:241–257  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

239}
240
241IPluginV2Ext* ReorgPluginCreator::deserializePlugin(
242 char const* name, void const* serialData, size_t serialLength) noexcept
243{
244 try
245 {
246 // This object will be deleted when the network is destroyed, which will
247 // call ReorgPlugin::destroy()
248 Reorg* obj = new Reorg(serialData, serialLength);
249 obj->setPluginNamespace(mNamespace.c_str());
250 return obj;
251 }
252 catch (std::exception const& e)
253 {
254 caughtError(e);
255 }
256 return nullptr;
257}
258} // namespace plugin
259} // 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