W3cubDocs

/PyTorch 2.9

torch.nn.functional.instance_norm

torch.nn.functional.instance_norm(input, running_mean=None, running_var=None, weight=None, bias=None, use_input_stats=True, momentum=0.1, eps=1e-05) [source]

Apply Instance Normalization independently for each channel in every data sample within a batch.

See InstanceNorm1d, InstanceNorm2d, InstanceNorm3d for details.

Return type

Tensor

© 2025, PyTorch Contributors
PyTorch has a BSD-style license, as found in the LICENSE file.
https://docs.pytorch.org/docs/2.9/generated/torch.nn.functional.instance_norm.html