MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / Compile

Method Compile

tensorflow/compiler/tf2xla/kernels/relu_op.cc:42–44  ·  view source on GitHub ↗

Computes the max of the scalar input x and 0.

Source from the content-addressed store, hash-verified

40 explicit ReluOp(OpKernelConstruction* ctx) : XlaOpKernel(ctx) {}
41 // Computes the max of the scalar input x and 0.
42 void Compile(XlaOpKernelContext* ctx) override {
43 ctx->SetOutput(0, xla::Relu(ctx->Input(0)));
44 }
45};
46REGISTER_XLA_OP(Name("Relu"), ReluOp);
47

Callers

nothing calls this directly

Calls 3

ReluFunction · 0.70
SetOutputMethod · 0.45
InputMethod · 0.45

Tested by

no test coverage detected