Exemple #1
0
def sigmoid(x):
    """Sigmoid function.

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

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

    """
    return ops.Sigmoid(x)
Exemple #2
0
def sigmoid(x, name=None):
    """
    Computes sigmoid of `x` element-wise.

     Specifically, `y = 1 / (1 + exp(-x))`.

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

     Returns:
       A Tensor with the same type.

    """

    return ops.Sigmoid(x, name=name)
Exemple #3
0
def sigmoid(x, name=None):

    return ops.Sigmoid(x, name=name)
Exemple #4
0
 def Setup(self, bottom):
     super(SigmoidLayer, self).Setup(bottom)
     input = bottom[0] if isinstance(bottom, list) else bottom
     return ops.Sigmoid(input, **self._param)
Exemple #5
0
def sigmoid(x, **kwargs):
    return ops.Sigmoid(x, **kwargs)
Exemple #6
0
 def LayerSetup(self, bottom):
     return _ops.Sigmoid(bottom, **self.arguments)