| 523 | } |
| 524 | |
| 525 | IPluginV2Ext* PriorBoxPluginCreator::deserializePlugin( |
| 526 | char const* /*name*/, void const* serialData, size_t serialLength) noexcept |
| 527 | { |
| 528 | try |
| 529 | { |
| 530 | // This object will be deleted when the network is destroyed, which will |
| 531 | // call PriorBox::destroy() |
| 532 | PriorBox* obj = new PriorBox(serialData, serialLength); |
| 533 | obj->setPluginNamespace(mNamespace.c_str()); |
| 534 | return obj; |
| 535 | } |
| 536 | catch (std::exception const& e) |
| 537 | { |
| 538 | caughtError(e); |
| 539 | } |
| 540 | return nullptr; |
| 541 | } |
nothing calls this directly
no test coverage detected