| 31 | explicit NextAfterOp(OpKernelConstruction* ctx) : XlaOpKernel(ctx) {} |
| 32 | |
| 33 | void Compile(XlaOpKernelContext* ctx) override { |
| 34 | auto lhs = ctx->Input(0); |
| 35 | auto rhs = ctx->Input(1); |
| 36 | OP_REQUIRES_OK(ctx, BroadcastOpsToSame(&lhs, &rhs)); |
| 37 | ctx->SetOutput(0, xla::NextAfter(lhs, rhs)); |
| 38 | } |
| 39 | }; |
| 40 | REGISTER_XLA_OP(Name("NextAfter"), NextAfterOp); |
| 41 |
nothing calls this directly
no test coverage detected