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

Method clone

plugin/reorgPlugin/reorgPlugin.cpp:179–192  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

177void Reorg::detachFromContext() noexcept {}
178
179IPluginV2Ext* Reorg::clone() const noexcept
180{
181 try
182 {
183 IPluginV2Ext* plugin = new Reorg(C, H, W, stride);
184 plugin->setPluginNamespace(mPluginNamespace.c_str());
185 return plugin;
186 }
187 catch (std::exception const& e)
188 {
189 caughtError(e);
190 }
191 return nullptr;
192}
193
194ReorgPluginCreator::ReorgPluginCreator()
195{

Callers

nothing calls this directly

Calls 3

caughtErrorFunction · 0.85
c_strMethod · 0.80
setPluginNamespaceMethod · 0.45

Tested by

no test coverage detected