Example #1
0
def Sigmoid():
  r"""Returns a layer that computes the sigmoid function.

  .. math::
      f(x) = \frac{1}{1 + e^{-x}}
  """
  return Fn('Sigmoid', lambda x: math.expit(x))
Example #2
0
def Sigmoid():
    return Fn('Sigmoid', lambda x: math.expit(x))
Example #3
0
def Sigmoid(x):
    return math.expit(x)
Example #4
0
def Sigmoid(x, **unused_kwargs):
    return math.expit(x)