Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Activation ¶
type Activation int
Activation is the enumeration-like type used for the set of built-in activations.
const ( Identity Activation = iota Tan Tanh Sigmoid HardSigmoid HardTanh Softsign ReLU CELU GELU ELU PositiveELU SwishB Swish SiLU Mish LeakyReLU SELU SoftPlus SoftShrink Threshold Softmax LogSoftmax SparseMax )
func MustParseActivation ¶ added in v1.1.0
func MustParseActivation(str string) Activation
MustParseActivation maps a string to an activation function. It panics if the string does not match any built-in activation (not even using lowercase).
func ParseActivation ¶ added in v1.1.0
func ParseActivation(str string) (Activation, error)
ParseActivation maps a string to an activation function. It returns an error if the string does not match any built-in activation (not even using lowercase).
Click to show internal directories.
Click to hide internal directories.