Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/DeepRec-AI/DeepRec
/ Tan
Function
Tan
tensorflow/compiler/xla/client/lib/math.cc:1133–1135 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1131
XlaOp Atan(XlaOp x) { return Atan2(x, ScalarLike(x, 1.0)); }
1132
1133
XlaOp Tan(XlaOp x) {
1134
return DoWithUpcastToF32(x, {F16}, [](XlaOp x) { return Sin(x) / Cos(x); });
1135
}
1136
1137
// Hyperbolic trigonometric functions.
1138
Callers
3
unary_ops.cc
File · 0.50
TEST_F
Function · 0.50
TestCWiseGrad
Method · 0.50
Calls
3
DoWithUpcastToF32
Function · 0.85
Sin
Function · 0.50
Cos
Function · 0.50
Tested by
2
TEST_F
Function · 0.40
TestCWiseGrad
Method · 0.40