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

Method deserializePlugin

plugin/scatterPlugin/scatterPlugin.cpp:280–296  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

278}
279
280IPluginV2Ext* ScatterNDPluginCreator::deserializePlugin(
281 char const* name, void const* serialData, size_t serialLength) noexcept
282{
283 try
284 {
285 // This object will be deleted when the network is destroyed, which will
286 // call Normalize::destroy()
287 ScatterND* obj = new ScatterND();
288 obj->setPluginNamespace(mNamespace.c_str());
289 return obj;
290 }
291 catch (std::exception const& e)
292 {
293 caughtError(e);
294 }
295 return nullptr;
296}
297} // namespace plugin
298} // 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