plugin/groupNormalizationPlugin/README.md
This plugin is deprecated since TensorRT 10.12 and will be removed in a future release. No alternatives are planned to be provided.
Table Of Contents
The GroupNormalizationPlugin implements Group Normalization, which divides channels into groups and computes normalization statistics within each group. This is particularly useful for vision models where batch sizes may be small.
As of TensorRT 10.7, usage of this plugin is not supported on Blackwell or later platforms.
This plugin can be replaced by TensorRT's native INormalizationLayer(C++, Python).
Note: This plugin remains supported on pre-Blackwell platforms.
The plugin takes three inputs:
[N, C, H, W] (batch, channels, height, width), where C must be divisible by num_groups. (See Parameters for more details on num_groups)[C])[C])It produces one output with the same dimensions as the input. The normalization is computed as:
group_mean = mean(input, group)
group_var = variance(input, group)
output = gamma (input - group_mean) / sqrt(group_var + epsilon) + beta
Key differences from Instance Normalization:
| Parameter | Type | Description |
|---|---|---|
epsilon | float | Small value added to variance for numerical stability (default: 1e-5) |
num_groups | int32 | Number of groups to split channels into; must evenly divide C |
For terms and conditions for use, reproduction, and distribution, see the TensorRT Software License Agreement.
May 2025: Add deprecation note.
Feb 2025: Initial release of this README, Deprecation and non-support notice added.