class_docstr: Layer with the hyperbolic tangent used as an activation function.
  It applies linear transformation when the ``n_units`` parameter
  specified and ``tanh`` function after the transformation. When
  ``n_units`` is not specified, only ``tanh`` function will be applied
  to the input.
  
  Parameters
  ----------
  {Linear.Parameters}
  
  Methods
  -------
  {Linear.Methods}
  
  Attributes
  ----------
  {Linear.Attributes}
  
  Examples
  --------
  Feedforward Neural Networks (FNN)
  
  >>> from neupy.layers import *
  >>> network = Input(10) >> Tanh(5)
class_docstr_tok: ["Layer","with","the","hyperbolic","tangent","used","as","an","activation","function",".","It","applies","linear","transformation","when","the","``","n_units","``","parameter","specified","and","``","tanh","``","function","after","the","transformation",".","When","``","n_units","``","is","not","specified",",","only","``","tanh","``","function","will","be","applied","to","the","input",".","Parameters","--","--","--","--","--","{","Linear.Parameters","}","Methods","--","--","--","-","{","Linear.Methods","}","Attributes","--","--","--","--","--","{","Linear.Attributes","}","Examples","--","--","--","--","Feedforward","Neural","Networks","(","FNN",")",">",">",">","from","neupy.layers","import","*",">",">",">","network","=","Input","(","10",")",">",">","Tanh","(","5",")"]
code: def activation_function(self, input_value):
      return tf.nn.tanh(input_value)
  
imports: import numpy
  import tensorflow
  from neupy import init
  from neupy.utils import asfloat, as_tuple, tf_utils
  from neupy.exceptions import LayerConnectionError, WeightInitializationError
  from neupy.core.properties import NumberProperty, TypedListProperty, ParameterProperty, IntProperty
  from .base import BaseLayer
label_desc: Use image node_id 1 for calling the Tanh obj's underlying member method code with example usage: obj.activation_function(input_value) and returns: tf