PyTorch - torch.nn.InstanceNorm2d[1]

torch.nn.InstanceNorm2d(
    num_features: int,
    eps: float = 1e-5,
    momentum: float = 0.1,
    affine: bool = False,
    track_running_stats: bool = False,
    device=None,
    dtype=None
) -> None:
m = torch.nn.InstanceNorm2d(100)
m = torch.nn.InstanceNorm2d(100, affine=True)
input = torch.randn(20, 100, 35, 45)
output = m(input)

explain

Instance Normalization 리뷰

Reference

1. INSTANCENORM2D, PyTorch, https://pytorch.org/docs/stable/generated/torch.nn.InstanceNorm2d.html#torch.nn.InstanceNorm2d