class_docstr: Gaussian error Linear Unit
  y = 1/2 * x * (1 + tanh(\sqrt{2/pi} * (x + 0.044715*x^3)))
class_docstr_tok: ["Gaussian","error","Linear","Unit","y","=","1\/2","*","x","*","(","1","+","tanh","(","\\sqrt","{","2\/pi","}","*","(","x","+","0.044715","*","x^3",")",")",")"]
code: def forward(self, x: Tensor) -> Tensor:
      return (
          0.5
          * x
          * (
              1
              + pt.tanh(
                  math.sqrt(2 / math.pi) * (x + 0.044715 * pt.pow(x, 3))
              )
          )
      )
  
file_path: gluonts/src/gluonts/nursery/daf/tslib/nn/activations.py
imports: from typing import List
  import math
  import torch
  from torch import Tensor, nn
label_desc: Use image node_id 1 for calling the GeLU obj's underlying member method code with example usage: obj.forward(x) and returns: unknown