Struct InstanceNormOptions¶
Defined in File instancenorm.h
Page Contents
Struct Documentation¶
-
struct InstanceNormOptions¶
Options for the
InstanceNorm
module.Public Functions
-
InstanceNormOptions(int64_t num_features)¶
-
inline auto num_features(const int64_t &new_num_features) -> decltype(*this)¶
The number of features of the input tensor.
-
inline auto num_features(int64_t &&new_num_features) -> decltype(*this)¶
-
inline const int64_t &num_features() const noexcept¶
-
inline int64_t &num_features() noexcept¶
-
inline auto eps(const double &new_eps) -> decltype(*this)¶
The epsilon value added for numerical stability.
-
inline auto eps(double &&new_eps) -> decltype(*this)¶
-
inline const double &eps() const noexcept¶
-
inline double &eps() noexcept¶
-
inline auto momentum(const double &new_momentum) -> decltype(*this)¶
A momentum multiplier for the mean and variance.
-
inline auto momentum(double &&new_momentum) -> decltype(*this)¶
-
inline const double &momentum() const noexcept¶
-
inline double &momentum() noexcept¶
-
inline auto affine(const bool &new_affine) -> decltype(*this)¶
Whether to learn a scale and bias that are applied in an affine transformation on the input.
-
inline auto affine(bool &&new_affine) -> decltype(*this)¶
-
inline const bool &affine() const noexcept¶
-
inline bool &affine() noexcept¶
-
inline auto track_running_stats(const bool &new_track_running_stats) -> decltype(*this)¶
Whether to store and update batch statistics (mean and variance) in the module.
-
inline auto track_running_stats(bool &&new_track_running_stats) -> decltype(*this)¶
-
inline const bool &track_running_stats() const noexcept¶
-
inline bool &track_running_stats() noexcept¶
-
InstanceNormOptions(int64_t num_features)¶