| 832 | } |
| 833 | |
| 834 | IPluginV2Ext* NMSPluginCreator::deserializePlugin( |
| 835 | char const* name, void const* serialData, size_t serialLength) noexcept |
| 836 | { |
| 837 | try |
| 838 | { |
| 839 | // This object will be deleted when the network is destroyed, which will |
| 840 | // call NMS::destroy() |
| 841 | DetectionOutput* obj = new DetectionOutput(serialData, serialLength); |
| 842 | obj->setPluginNamespace(mNamespace.c_str()); |
| 843 | return obj; |
| 844 | } |
| 845 | catch (std::exception const& e) |
| 846 | { |
| 847 | caughtError(e); |
| 848 | } |
| 849 | return nullptr; |
| 850 | } |
| 851 | |
| 852 | IPluginV2DynamicExt* NMSDynamicPluginCreator::deserializePlugin( |
| 853 | char const* name, void const* serialData, size_t serialLength) noexcept |
nothing calls this directly
no test coverage detected