Shortcuts

Struct InstanceNormFuncOptions

Page Contents

Struct Documentation

struct torch::nn::functional::InstanceNormFuncOptions

Options for torch::nn::functional::instance_norm.

Example:

namespace F = torch::nn::functional;
F::instance_norm(input, F::InstanceNormFuncOptions().running_mean(mean).running_var(variance).weight(weight).bias(bias).momentum(0.1).eps(1e-5));

Public Functions

auto running_mean(const Tensor &new_running_mean) -> decltype(*this)
auto running_mean(Tensor &&new_running_mean) -> decltype(*this)
const Tensor &running_mean() const noexcept
Tensor &running_mean() noexcept
auto running_var(const Tensor &new_running_var) -> decltype(*this)
auto running_var(Tensor &&new_running_var) -> decltype(*this)
const Tensor &running_var() const noexcept
Tensor &running_var() noexcept
auto weight(const Tensor &new_weight) -> decltype(*this)
auto weight(Tensor &&new_weight) -> decltype(*this)
const Tensor &weight() const noexcept
Tensor &weight() noexcept
auto bias(const Tensor &new_bias) -> decltype(*this)
auto bias(Tensor &&new_bias) -> decltype(*this)
const Tensor &bias() const noexcept
Tensor &bias() noexcept
auto use_input_stats(const bool &new_use_input_stats) -> decltype(*this)
auto use_input_stats(bool &&new_use_input_stats) -> decltype(*this)
const bool &use_input_stats() const noexcept
bool &use_input_stats() noexcept
auto momentum(const double &new_momentum) -> decltype(*this)
auto momentum(double &&new_momentum) -> decltype(*this)
const double &momentum() const noexcept
double &momentum() noexcept
auto eps(const double &new_eps) -> decltype(*this)
auto eps(double &&new_eps) -> decltype(*this)
const double &eps() const noexcept
double &eps() noexcept

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