예제 #1
0
def tanh(x, name=None):
    """
    Computes hyperbolic tangent of `x` element-wise.

     Args:
       x: A Tensor.
       name: A name for the operation (optional).

     Returns:
       A Tensor with the same type.

    """

    return ops.Tanh(x, name=name)
예제 #2
0
def tanh(x):
    """TanH function.

    Parameters
    ----------
    inputs : Tensor
        The input tensor.

    Returns
    -------
    Tensor
        The output tensor.

    """
    return ops.Tanh(x)
예제 #3
0
def tanh(x, name=None):

    return ops.Tanh(x, name=name)
예제 #4
0
 def Setup(self, bottom):
     super(TanHLayer, self).Setup(bottom)
     input = bottom[0] if isinstance(bottom, list) else bottom
     return ops.Tanh(input, **self._param)
예제 #5
0
def tanh(x, **kwargs):
    return ops.Tanh(x, **kwargs)
예제 #6
0
파일: neuron.py 프로젝트: yyaqi/Dragon
 def LayerSetup(self, bottom):
     return _ops.Tanh(bottom, **self.arguments)