Alias for abs.
abs
Calculates:
output = abs(input) Copy
output = abs(input)
Gradient:
inputGrad = input == 0 ? 0 : (input > 0 ? outputGrad : -outputGrad) Copy
inputGrad = input == 0 ? 0 : (input > 0 ? outputGrad : -outputGrad)
the input tensor of any shape
the output tensor
Generated using TypeDoc
Alias for
abs
.Calculates:
Gradient: