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

Method clone

plugin/specialSlicePlugin/specialSlicePlugin.cpp:102–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

100}
101
102IPluginV2Ext* SpecialSlice::clone() const noexcept
103{
104 try
105 {
106 auto plugin = new SpecialSlice(*this);
107 plugin->setPluginNamespace(mNameSpace.c_str());
108 return plugin;
109 }
110 catch (std::exception const& e)
111 {
112 caughtError(e);
113 }
114 return nullptr;
115}
116
117void SpecialSlice::setPluginNamespace(char const* libNamespace) noexcept
118{

Callers

nothing calls this directly

Calls 3

caughtErrorFunction · 0.85
c_strMethod · 0.80
setPluginNamespaceMethod · 0.45

Tested by

no test coverage detected