Shortcuts

Struct InstanceNormFuncOptions

Page Contents

Struct Documentation

struct 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

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