Calculates:
output = input / (1.0 + exp(-input)) Copy
output = input / (1.0 + exp(-input))
Gradient:
var out = 1.0 / (1.0 + exp(-input)); inputGrad = outputGrad * (out + input * out * (1.0 - out)) Copy
var out = 1.0 / (1.0 + exp(-input)); inputGrad = outputGrad * (out + input * out * (1.0 - out))
the input tensor of any shape
the output tensor
Generated using TypeDoc
Calculates:
Gradient: