Shortcuts

Class InstanceNorm2dImpl

Inheritance Relationships

Base Type

Class Documentation

class InstanceNorm2dImpl : public torch::nn::InstanceNormImpl<2, InstanceNorm2dImpl>

Applies the InstanceNorm2d function.

See https://pytorch.org/docs/main/nn.html#torch.nn.InstanceNorm2d to learn about the exact behavior of this module.

See the documentation for torch::nn::InstanceNorm2dOptions class to learn what constructor arguments are supported for this module.

Example:

InstanceNorm2d
model(InstanceNorm2dOptions(4).eps(0.5).momentum(0.1).affine(false).track_running_stats(true));

Protected Functions

virtual void _check_input_dim(const Tensor &input) override

Docs

Access comprehensive developer documentation for PyTorch

View Docs

Tutorials

Get in-depth tutorials for beginners and advanced developers

View Tutorials

Resources

Find development resources and get your questions answered

View Resources