class_docstr: A fast C implementation of the tanh approximation of the GeLU activation function. See
  https://arxiv.org/abs/1606.08415.
  
  This implementation is equivalent to NewGELU and FastGELU but much faster. However, it is not an exact numerical
  match due to rounding errors.
class_docstr_tok: ["A","fast","C","implementation","of","the","tanh","approximation","of","the","GeLU","activation","function",".","See","https",":","\/\/arxiv.org\/abs\/1606.08415",".","This","implementation","is","equivalent","to","NewGELU","and","FastGELU","but","much","faster",".","However",",","it","is","not","an","exact","numerical","match","due","to","rounding","errors","."]
code: def forward(self, input: Tensor) -> Tensor:
      return nn.functional.gelu(input, approximate="tanh")
  
imports: import math
  import warnings
  from collections import OrderedDict
  import torch
  from packaging import version
  from torch import Tensor, nn
  from .utils import logging
label_desc: Use image node_id 2 for calling the PytorchGELUTanh obj's underlying member method code with example usage: obj.forward(input) and returns: nn