-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Closed
Description
IPlugin*::initialize and IPlugin*::terminate should be always implemented as a pair. Also, resources acquired (e.g. malloc, new *, cuadMalloc*, *Create*, etc) in IPlugin*::initialize should be released in IPlugin*::terminate. Otherwise, it causes memory leak.
I fix a plugin as example, see #24106. Following plugins have the same bug at least:
- InstanceNormPlugin
- PReluPlugin
- SkipLayerNormPluginDynamic
Read https://docs.nvidia.com/deeplearning/sdk/tensorrt-developer-guide/index.html#ipluginext to know more.
Metadata
Metadata
Assignees
Labels
No labels