MCPcopy Create free account
hub / github.com/alibaba/MNN / _Sign

Function _Sign

express/MathOp.cpp:447–449  ·  view source on GitHub ↗

Computes sign of x eltment-wise sign(x) = 0 if x=0 sign(x) =-1 if x<0 sign(x) = 1 if x>0 */

Source from the content-addressed store, hash-verified

445 sign(x) = 1 if x>0
446 */
447VARP _Sign(VARP x) {
448 return _Unary(x, UnaryOpOperation_SIGN);
449}
450
451/*Computes the trignometric inverse tangent of x element-wise.
452The atan operation returns the inverse of tan, such that if y = tan(x) then, x = atan(y).

Callers 12

_shrinkFunction · 0.85
onExecuteMethod · 0.85
onGradMethod · 0.85
onGradMethod · 0.85
divideAvoidZeroMethod · 0.85
onGradMethod · 0.85
onGradMethod · 0.85
onGradMethod · 0.85
onGradMethod · 0.85
regularizeParametersMethod · 0.85
runMethod · 0.85
referenceWinogradMethod · 0.85

Calls 1

_UnaryFunction · 0.70

Tested by 1

referenceWinogradMethod · 0.68