| 109 | explicit FlushSummaryWriterOp(OpKernelConstruction* ctx) : OpKernel(ctx) {} |
| 110 | |
| 111 | void Compute(OpKernelContext* ctx) override { |
| 112 | core::RefCountPtr<SummaryWriterInterface> s; |
| 113 | OP_REQUIRES_OK(ctx, LookupResource(ctx, HandleFromInput(ctx, 0), &s)); |
| 114 | OP_REQUIRES_OK(ctx, s->Flush()); |
| 115 | } |
| 116 | }; |
| 117 | REGISTER_KERNEL_BUILDER(Name("FlushSummaryWriter").Device(DEVICE_CPU), |
| 118 | FlushSummaryWriterOp); |
nothing calls this directly
no test coverage detected