Clone the plugin
| 264 | |
| 265 | // Clone the plugin |
| 266 | IPluginV2Ext* Normalize::clone() const noexcept |
| 267 | { |
| 268 | try |
| 269 | { |
| 270 | // Create a new instance |
| 271 | IPluginV2Ext* plugin |
| 272 | = new Normalize(&mWeights, mNbWeights, mScalarScale, acrossSpatial, channelShared, eps, C, H, W); |
| 273 | |
| 274 | // Set the namespace |
| 275 | plugin->setPluginNamespace(mPluginNamespace.c_str()); |
| 276 | return plugin; |
| 277 | } |
| 278 | catch (std::exception const& e) |
| 279 | { |
| 280 | caughtError(e); |
| 281 | } |
| 282 | return nullptr; |
| 283 | } |
| 284 | |
| 285 | NormalizePluginCreator::NormalizePluginCreator() |
| 286 | { |
nothing calls this directly
no test coverage detected