| 846 | } |
| 847 | |
| 848 | IPluginV2Ext* BatchedNMSPluginCreator::deserializePlugin( |
| 849 | char const* name, void const* serialData, size_t serialLength) noexcept |
| 850 | { |
| 851 | try |
| 852 | { |
| 853 | // This object will be deleted when the network is destroyed, which will |
| 854 | // call NMS::destroy() |
| 855 | auto* plugin = new BatchedNMSPlugin(serialData, serialLength); |
| 856 | plugin->setPluginNamespace(mNamespace.c_str()); |
| 857 | return plugin; |
| 858 | } |
| 859 | catch (std::exception const& e) |
| 860 | { |
| 861 | caughtError(e); |
| 862 | } |
| 863 | return nullptr; |
| 864 | } |
| 865 | |
| 866 | IPluginV2DynamicExt* BatchedNMSDynamicPluginCreator::deserializePlugin( |
| 867 | char const* name, void const* serialData, size_t serialLength) noexcept |
nothing calls this directly
no test coverage detected