| 388 | explicit CopyOpBase(OpKernelConstruction* ctx) : OpKernel(ctx) {} |
| 389 | |
| 390 | void Compute(OpKernelContext* ctx) override { |
| 391 | auto x = ctx->input(0); |
| 392 | Tensor* y; |
| 393 | OP_REQUIRES_OK(ctx, ctx->allocate_output(0, x.shape(), &y)); |
| 394 | OP_REQUIRES_OK(ctx, DoCompute(ctx, x, y)); |
| 395 | } |
| 396 | |
| 397 | protected: |
| 398 | virtual Status DoCompute(OpKernelContext* ctx, const Tensor& x, |
nothing calls this directly
no test coverage detected