Cloning the plugin
| 376 | |
| 377 | // Cloning the plugin |
| 378 | IPluginV2Ext* DetectionOutput::clone() const noexcept |
| 379 | { |
| 380 | try |
| 381 | { |
| 382 | // Create a new instance |
| 383 | auto* plugin = new DetectionOutput(param, C1, C2, numPriors); |
| 384 | plugin->mType = mType; |
| 385 | // Set the namespace |
| 386 | plugin->setPluginNamespace(mPluginNamespace.c_str()); |
| 387 | // set mScoreBits |
| 388 | plugin->setScoreBits(mScoreBits); |
| 389 | return plugin; |
| 390 | } |
| 391 | catch (std::exception const& e) |
| 392 | { |
| 393 | caughtError(e); |
| 394 | } |
| 395 | return nullptr; |
| 396 | } |
| 397 | |
| 398 | IPluginV2DynamicExt* DetectionOutputDynamic::clone() const noexcept |
| 399 | { |
nothing calls this directly
no test coverage detected