| 42 | } |
| 43 | |
| 44 | void SendOp::Compile(XlaOpKernelContext* ctx) { |
| 45 | XlaCompiler* compiler = ctx->compiler(); |
| 46 | xla::ChannelHandle channel; |
| 47 | OP_REQUIRES_OK(ctx, compiler->GetChannelHandle(tensor_name_, &channel)); |
| 48 | xla::Send(ctx->Input(0), channel); |
| 49 | } |
| 50 | |
| 51 | REGISTER_XLA_OP(Name("XlaSend"), SendOp); |
| 52 |