Glu
The gated linear unit. Computes:
nnf_glu(input, dim = -1)
input
: (Tensor) input tensordim
: (int) dimension on which to split the input. Default: -1where input
is split in half along dim
to form a
and b
,
is the sigmoid function and is the element-wise product between matrices.
Useful links