class_docstr: Tanh activiation layer.
  
  A layer applies a tangnet function to the input.
  
  Args:
      inplace(`Bool`):
          whether use inplace version.
  Returns:
      (`torch.Tensor`)
          output tensor after activation.
code: def forward(self, x: torch.Tensor) -> torch.Tensor:
      return x.tanh_() if self.inplace else x.tanh()
  
imports: import torch
  from torch import nn
label_desc: Use image node_id 2 for calling the Tanh obj's underlying member method code with example usage: obj.forward(x) and returns: unknown