:github_url: https://github.com/pytorch/pytorch .. _program_listing_file_torch_csrc_api_include_torch_nn_options_instancenorm.h: Program Listing for File instancenorm.h ======================================= |exhale_lsh| :ref:`Return to documentation for file ` (``torch/csrc/api/include/torch/nn/options/instancenorm.h``) .. |exhale_lsh| unicode:: U+021B0 .. UPWARDS ARROW WITH TIP LEFTWARDS .. code-block:: cpp #pragma once #include #include #include #include namespace torch::nn { struct TORCH_API InstanceNormOptions { /* implicit */ InstanceNormOptions(int64_t num_features); TORCH_ARG(int64_t, num_features); TORCH_ARG(double, eps) = 1e-5; TORCH_ARG(double, momentum) = 0.1; TORCH_ARG(bool, affine) = false; TORCH_ARG(bool, track_running_stats) = false; }; using InstanceNorm1dOptions = InstanceNormOptions; using InstanceNorm2dOptions = InstanceNormOptions; using InstanceNorm3dOptions = InstanceNormOptions; namespace functional { struct TORCH_API InstanceNormFuncOptions { TORCH_ARG(Tensor, running_mean); TORCH_ARG(Tensor, running_var); TORCH_ARG(Tensor, weight); TORCH_ARG(Tensor, bias); TORCH_ARG(bool, use_input_stats) = true; TORCH_ARG(double, momentum) = 0.1; TORCH_ARG(double, eps) = 1e-5; }; } // namespace functional } // namespace torch::nn