| 32 | public: |
| 33 | explicit TestKernel(OpKernelConstruction* context) : OpKernel(context) {} |
| 34 | void Compute(OpKernelContext* context) override { |
| 35 | Tensor* out_tensor = nullptr; |
| 36 | OP_REQUIRES_OK(context, context->allocate_output("ndef", TensorShape({}), |
| 37 | &out_tensor)); |
| 38 | out_tensor->scalar<tstring>()() = SummarizeNodeDef(def()); |
| 39 | } |
| 40 | }; |
| 41 | |
| 42 | class OpCompatibilityTest : public OpsTestBase { |
nothing calls this directly
no test coverage detected