Applies the gated linear unit function.
This function splits the axis dimension of the input into two halves
(\(a\) and \(b\)) and applies \(a * \sigma(b)\).
\[\textrm{GLU}(x) = a * \sigma(b)\]
- 參數:
axis (int) -- The dimension to split along. Default: -1
方法