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 __init__(self):
      super().__init__()
      if version.parse(torch.__version__) < version.parse("1.12.0"):
          raise ImportError(
              f"You are using torch=={torch.__version__}, but torch>=1.12.0 is required to use "
              "PytorchGELUTanh. Please upgrade torch."
          )
  
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 1 to create a new PytorchGELUTanh object from inherited base classes: nn with example: obj = PytorchGELUTanh()