glu

Contents

glu#

class brainpy.math.glu(x, axis=-1)[source]#

Gated linear unit activation function.

Parameters:
  • x (ArrayType) – The input array.

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