| 25 | explicit IdentityNOp(OpKernelConstruction* context) : OpKernel(context) {} |
| 26 | |
| 27 | void Compute(OpKernelContext* context) override { |
| 28 | OpInputList input; |
| 29 | OpOutputList output; |
| 30 | OP_REQUIRES_OK(context, context->input_list("input", &input)); |
| 31 | OP_REQUIRES_OK(context, context->output_list("output", &output)); |
| 32 | OP_REQUIRES(context, input.size() == output.size(), |
| 33 | errors::InvalidArgument("Input and output counts must match")); |
| 34 | for (int i = 0; i < input.size(); ++i) { |
| 35 | output.set(i, input[i]); |
| 36 | } |
| 37 | } |
| 38 | |
| 39 | bool IsExpensive() override { return false; } |
| 40 | }; |
nothing calls this directly
no test coverage detected