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)
def tanh(x): """TanH function. Parameters ---------- inputs : Tensor The input tensor. Returns ------- Tensor The output tensor. """ return ops.Tanh(x)
def tanh(x, name=None): return ops.Tanh(x, name=name)
def Setup(self, bottom): super(TanHLayer, self).Setup(bottom) input = bottom[0] if isinstance(bottom, list) else bottom return ops.Tanh(input, **self._param)
def tanh(x, **kwargs): return ops.Tanh(x, **kwargs)
def LayerSetup(self, bottom): return _ops.Tanh(bottom, **self.arguments)