| 198 | explicit TestAttrOp(OpKernelConstruction* ctx) : OpKernel(ctx) {} |
| 199 | |
| 200 | void Compute(OpKernelContext* ctx) override { |
| 201 | Tensor* output; |
| 202 | OP_REQUIRES_OK(ctx, ctx->allocate_output(0, TensorShape({}), &output)); |
| 203 | output->scalar<float>()() = 1.0; |
| 204 | } |
| 205 | }; |
| 206 | |
| 207 | REGISTER_KERNEL_BUILDER( |
nothing calls this directly
no test coverage detected