flax.linen.activation.glu#

flax.linen.activation.glu(x, axis=- 1)[source]#

Gated linear unit activation function.

Parameters
  • x – input array

  • axis – the axis along which the split should be computed (default: -1)