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

Method clone

plugin/flattenConcat/flattenConcat.cpp:325–339  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

323}
324
325IPluginV2Ext* FlattenConcat::clone() const noexcept
326{
327 try
328 {
329 auto* plugin = new FlattenConcat(mConcatAxisID, mIgnoreBatch, mNumInputs, mOutputConcatAxis,
330 mInputConcatAxis.data(), mCopySize.data(), mCHW);
331 plugin->setPluginNamespace(mPluginNamespace.c_str());
332 return plugin;
333 }
334 catch (std::exception const& e)
335 {
336 caughtError(e);
337 }
338 return nullptr;
339}
340
341FlattenConcatPluginCreator::FlattenConcatPluginCreator()
342{

Callers

nothing calls this directly

Calls 4

caughtErrorFunction · 0.85
c_strMethod · 0.80
dataMethod · 0.45
setPluginNamespaceMethod · 0.45

Tested by

no test coverage detected