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

Method createPlugin

plugin/scatterPlugin/scatterPlugin.cpp:265–278  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

263}
264
265IPluginV2Ext* ScatterNDPluginCreator::createPlugin(char const* name, PluginFieldCollection const* fc) noexcept
266{
267 try
268 {
269 ScatterND* obj = new ScatterND();
270 obj->setPluginNamespace(mNamespace.c_str());
271 return obj;
272 }
273 catch (std::exception const& e)
274 {
275 caughtError(e);
276 }
277 return nullptr;
278}
279
280IPluginV2Ext* ScatterNDPluginCreator::deserializePlugin(
281 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