MCPcopy 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
25namespace xla {
26XlaOp Relu(XlaOp x) { return Max(ScalarLike(x, 0), x); }
27
28XlaOp Relu6(XlaOp x) {
29 auto zero = ScalarLike(x, 0);

Callers 3

CompileMethod · 0.70
CompileImplMethod · 0.70
TEST_FFunction · 0.50

Calls 2

ScalarLikeFunction · 0.85
MaxFunction · 0.50

Tested by 1

TEST_FFunction · 0.40