| 184 | explicit ResourceUsingOp(OpKernelConstruction* context) : OpKernel(context) {} |
| 185 | |
| 186 | void Compute(OpKernelContext* ctx) override { |
| 187 | StubResource* unused; |
| 188 | OP_REQUIRES_OK(ctx, LookupResource<StubResource>( |
| 189 | ctx, HandleFromInput(ctx, 0), &unused)); |
| 190 | } |
| 191 | }; |
| 192 | |
| 193 | REGISTER_KERNEL_BUILDER(Name("ResourceUsingOp").Device(DEVICE_CPU), |
nothing calls this directly
no test coverage detected