teras.activations.glu

Contents

teras.activations.glu#

teras.activations.glu(logits, axis=-1)[source]#

Generalized linear unit nonlinear activation.

Parameters:
  • logitsTensor, tensor of logits.

  • axis (int) – int, axis along which to apply glu activation. Defaults to -1.