| 239 | } |
| 240 | |
| 241 | IPluginV2Ext* ReorgPluginCreator::deserializePlugin( |
| 242 | char const* name, void const* serialData, size_t serialLength) noexcept |
| 243 | { |
| 244 | try |
| 245 | { |
| 246 | // This object will be deleted when the network is destroyed, which will |
| 247 | // call ReorgPlugin::destroy() |
| 248 | Reorg* obj = new Reorg(serialData, serialLength); |
| 249 | obj->setPluginNamespace(mNamespace.c_str()); |
| 250 | return obj; |
| 251 | } |
| 252 | catch (std::exception const& e) |
| 253 | { |
| 254 | caughtError(e); |
| 255 | } |
| 256 | return nullptr; |
| 257 | } |
| 258 | } // namespace plugin |
| 259 | } // namespace nvinfer1 |
nothing calls this directly
no test coverage detected