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

Method Compile

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

Clamp the scalar input between 0 and 6.

Source from the content-addressed store, hash-verified

50 explicit Relu6Op(OpKernelConstruction* ctx) : XlaOpKernel(ctx) {}
51 // Clamp the scalar input between 0 and 6.
52 void Compile(XlaOpKernelContext* ctx) override {
53 ctx->SetOutput(0, xla::Relu6(ctx->Input(0)));
54 }
55};
56REGISTER_XLA_OP(Name("Relu6"), Relu6Op);
57

Callers

nothing calls this directly

Calls 3

Relu6Function · 0.70
SetOutputMethod · 0.45
InputMethod · 0.45

Tested by

no test coverage detected