MCPcopy 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

26XlaOp Relu(XlaOp x) { return Max(ScalarLike(x, 0), x); }
27
28XlaOp 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
35namespace tensorflow {

Callers 2

CompileMethod · 0.70
TEST_FFunction · 0.50

Calls 2

ScalarLikeFunction · 0.85
ClampFunction · 0.50

Tested by 1

TEST_FFunction · 0.40