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))
def Sigmoid(): return Fn('Sigmoid', lambda x: math.expit(x))
def Sigmoid(x): return math.expit(x)
def Sigmoid(x, **unused_kwargs): return math.expit(x)