Struct GELUOptions¶
Defined in File activation.h
Page Contents
Struct Documentation¶
-
struct GELUOptions¶
Options for the
GELU
module.Example:
GELU model(GELUOptions().approximate("none"));
Public Functions
-
inline auto approximate(const std::string &new_approximate) -> decltype(*this)¶
Specifies the approximation to apply to the output.
-
inline auto approximate(std::string &&new_approximate) -> decltype(*this)¶
-
inline const std::string &approximate() const noexcept¶
-
inline std::string &approximate() noexcept¶
-
inline auto approximate(const std::string &new_approximate) -> decltype(*this)¶