Struct FeatureAlphaDropoutFuncOptions¶
Defined in File dropout.h
Page Contents
Struct Documentation¶
-
struct FeatureAlphaDropoutFuncOptions¶
Options for
torch::nn::functional::feature_alpha_dropout
.Example:
namespace F = torch::nn::functional; F::feature_alpha_dropout(input, F::FeatureAlphaDropoutFuncOptions().p(0.5).training(false));
Public Functions
-
inline auto p(const double &new_p) -> decltype(*this)¶
-
inline auto p(double &&new_p) -> decltype(*this)¶
-
inline const double &p() const noexcept¶
-
inline double &p() noexcept¶
-
inline auto training(const bool &new_training) -> decltype(*this)¶
-
inline auto training(bool &&new_training) -> decltype(*this)¶
-
inline const bool &training() const noexcept¶
-
inline bool &training() noexcept¶
-
inline auto inplace(const bool &new_inplace) -> decltype(*this)¶
-
inline auto inplace(bool &&new_inplace) -> decltype(*this)¶
-
inline const bool &inplace() const noexcept¶
-
inline bool &inplace() noexcept¶
-
inline auto p(const double &new_p) -> decltype(*this)¶