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