MCPcopy Create free account
hub / github.com/NVIDIA/TensorRT / deserializePlugin

Method deserializePlugin

plugin/proposalPlugin/proposalPlugin.cpp:885–900  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

883}
884
885IPluginV2Ext* ProposalPluginCreator::deserializePlugin(
886 char const* name, void const* serialData, size_t serialLength) noexcept
887{
888 try
889 {
890 // This object will be deleted when the network is destroyed,
891 IPluginV2Ext* plugin = new ProposalPlugin(serialData, serialLength);
892 plugin->setPluginNamespace(mNamespace.c_str());
893 return plugin;
894 }
895 catch (std::exception const& e)
896 {
897 caughtError(e);
898 }
899 return nullptr;
900}
901
902IPluginV2DynamicExt* ProposalDynamicPluginCreator::deserializePlugin(
903 char const* name, void const* serialData, size_t serialLength) noexcept

Callers

nothing calls this directly

Calls 3

caughtErrorFunction · 0.85
c_strMethod · 0.80
setPluginNamespaceMethod · 0.45

Tested by

no test coverage detected