MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / Compute

Method Compute

tensorflow/core/kernels/summary_kernels.cc:111–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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};
117REGISTER_KERNEL_BUILDER(Name("FlushSummaryWriter").Device(DEVICE_CPU),
118 FlushSummaryWriterOp);

Callers

nothing calls this directly

Calls 3

LookupResourceFunction · 0.85
HandleFromInputFunction · 0.85
FlushMethod · 0.45

Tested by

no test coverage detected