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

Method clone

plugin/leakyReluPlugin/lReluPlugin.cpp:125–138  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

123}
124
125IPluginV2* LReLU::clone() const noexcept
126{
127 try
128 {
129 IPluginV2* plugin = new LReLU(mNegSlope);
130 plugin->setPluginNamespace(mNamespace.c_str());
131 return plugin;
132 }
133 catch (std::exception const& e)
134 {
135 caughtError(e);
136 }
137 return nullptr;
138}
139
140LReluPluginCreator::LReluPluginCreator()
141{

Callers

nothing calls this directly

Calls 3

caughtErrorFunction · 0.85
c_strMethod · 0.80
setPluginNamespaceMethod · 0.45

Tested by

no test coverage detected