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 6c12921 commit bcf0afcCopy full SHA for bcf0afc
torchvision/ops/_utils.py
@@ -43,7 +43,13 @@ def split_normalization_params(
43
) -> Tuple[List[Tensor], List[Tensor]]:
44
# Adapted from https://github.com/facebookresearch/ClassyVision/blob/659d7f78/classy_vision/generic/util.py#L501
45
if not norm_classes:
46
- norm_classes = [nn.modules.batchnorm._BatchNorm, nn.LayerNorm, nn.GroupNorm]
+ norm_classes = [
47
+ nn.modules.batchnorm._BatchNorm,
48
+ nn.LayerNorm,
49
+ nn.GroupNorm,
50
+ nn.modules.instancenorm._InstanceNorm,
51
+ nn.LocalResponseNorm,
52
+ ]
53
54
for t in norm_classes:
55
if not issubclass(t, nn.Module):
0 commit comments