Struct SwishNodeOp¶
Defined in File node_operators_unary.h
Inheritance Relationships¶
Base Type¶
public marian::UnaryNodeOp
(Struct UnaryNodeOp)
Struct Documentation¶
-
struct
SwishNodeOp
: public marian::UnaryNodeOp¶ Represents a swish node in an expression graph.
This node implements the activation function \( f(x) = x \cdot \sigma(bx) \) and its derivative \( f^\prime(x) = bf(x) + \sigma(bx)(1 - bf(x)) \) .
Public Functions
-
virtual size_t
hash
()¶
Public Members
-
float
b_
¶
-
virtual size_t