| 343 | } |
| 344 | |
| 345 | IPluginV2Ext* CropAndResizePlugin::clone() const noexcept |
| 346 | { |
| 347 | try |
| 348 | { |
| 349 | IPluginV2Ext* plugin |
| 350 | = new CropAndResizePlugin(mCropWidth, mCropHeight, mDepth, mInputWidth, mInputHeight, mNumBoxes); |
| 351 | plugin->setPluginNamespace(mNamespace.c_str()); |
| 352 | return plugin; |
| 353 | } |
| 354 | catch (std::exception const& e) |
| 355 | { |
| 356 | caughtError(e); |
| 357 | } |
| 358 | return nullptr; |
| 359 | } |
| 360 | |
| 361 | IPluginV2DynamicExt* CropAndResizeDynamicPlugin::clone() const noexcept |
| 362 | { |
nothing calls this directly
no test coverage detected