| 475 | } |
| 476 | |
| 477 | IPluginV2Ext* ProposalPlugin::clone() const noexcept |
| 478 | { |
| 479 | try |
| 480 | { |
| 481 | IPluginV2Ext* plugin = new ProposalPlugin(mInputHeight, mInputWidth, mRpnHeight, mRpnWidth, mRpnStdScaling, |
| 482 | mRpnStride, mBboxMinSize, mNmsIouThreshold, mPreNmsTopN, mMaxBoxNum, &mAnchorSizes[0], mAnchorSizeNum, |
| 483 | &mAnchorRatios[0], mAnchorRatioNum); |
| 484 | plugin->setPluginNamespace(mNamespace.c_str()); |
| 485 | return plugin; |
| 486 | } |
| 487 | catch (std::exception const& e) |
| 488 | { |
| 489 | caughtError(e); |
| 490 | } |
| 491 | return nullptr; |
| 492 | } |
| 493 | |
| 494 | IPluginV2DynamicExt* ProposalDynamicPlugin::clone() const noexcept |
| 495 | { |
nothing calls this directly
no test coverage detected