| 486 | } |
| 487 | |
| 488 | IPluginV2Ext* BatchedNMSPlugin::clone() const noexcept |
| 489 | { |
| 490 | try |
| 491 | { |
| 492 | auto* plugin = new BatchedNMSPlugin(param); |
| 493 | plugin->mBoxesSize = mBoxesSize; |
| 494 | plugin->mScoresSize = mScoresSize; |
| 495 | plugin->mNumPriors = mNumPriors; |
| 496 | plugin->setPluginNamespace(mNamespace.c_str()); |
| 497 | plugin->setClipParam(mClipBoxes); |
| 498 | plugin->mPrecision = mPrecision; |
| 499 | plugin->setScoreBits(mScoreBits); |
| 500 | plugin->setCaffeSemantics(mCaffeSemantics); |
| 501 | return plugin; |
| 502 | } |
| 503 | catch (std::exception const& e) |
| 504 | { |
| 505 | caughtError(e); |
| 506 | } |
| 507 | return nullptr; |
| 508 | } |
| 509 | |
| 510 | IPluginV2DynamicExt* BatchedNMSDynamicPlugin::clone() const noexcept |
| 511 | { |
nothing calls this directly
no test coverage detected