We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ed3484a commit 370169cCopy full SHA for 370169c
pytorch_optimizer/gc.py
@@ -3,8 +3,8 @@
3
4
def centralize_gradient(x: torch.Tensor, gc_conv_only: bool = False) -> torch.Tensor:
5
"""Gradient Centralization (GC)
6
- :param x: torch.Tensor. gradient.
7
- :param gc_conv_only: bool. 'False' for both conv & fc layers.
+ :param x: torch.Tensor. gradient
+ :param gc_conv_only: bool. 'False' for both conv & fc layers
8
:return: torch.Tensor. GC-ed gradient
9
"""
10
size: int = x.dim()
0 commit comments