Mila 0.13.48
Deep Neural Network Library
Loading...
Searching...
No Matches
ApproximationMethod.ixx File Reference

Shared approximation method enum for activation functions. More...

#include <string_view>

Namespaces

namespace  Mila
 Mila main API namespace.
namespace  Mila::Dnn

Enumerations

enum class  Mila::Dnn::ApproximationMethod { Mila::Dnn::Exact , Mila::Dnn::Tanh , Mila::Dnn::Sigmoid }
 Approximation methods usable by activation functions. More...

Functions

constexpr std::string_view Mila::Dnn::ApproximationMethodToString (ApproximationMethod m) noexcept
 Convert ApproximationMethod to a short string.

Detailed Description

Shared approximation method enum for activation functions.

Export a small enum and helper to-string for reuse by GELU, SwiGLU and others.