torch_geometric.nn.norm.MeanSubtractionNorm
- class MeanSubtractionNorm[source]
Bases:
Module
Applies layer normalization by subtracting the mean from the inputs as described in the “Revisiting ‘Over-smoothing’ in Deep GCNs” paper.
\[\mathbf{x}_i = \mathbf{x}_i - \frac{1}{|\mathcal{V}|} \sum_{j \in \mathcal{V}} \mathbf{x}_j\]