Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/DeepRec-AI/DeepRec
/ Relu6
Function
Relu6
tensorflow/compiler/tf2xla/kernels/relu_op.cc:28–32 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
26
XlaOp Relu(XlaOp x) { return Max(ScalarLike(x, 0), x); }
27
28
XlaOp Relu6(XlaOp x) {
29
auto zero = ScalarLike(x, 0);
30
auto six = ScalarLike(x, 6);
31
return Clamp(zero, x, six);
32
}
33
} // namespace xla
34
35
namespace tensorflow {
Callers
2
Compile
Method · 0.70
TEST_F
Function · 0.50
Calls
2
ScalarLike
Function · 0.85
Clamp
Function · 0.50
Tested by
1
TEST_F
Function · 0.40