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

Method ComputeAsync

tensorflow/compiler/xrt/kernels/xrt_execute_op.cc:241–247  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

239 : AsyncOpKernel(context) {}
240
241void XRTExecuteOp::ComputeAsync(OpKernelContext* context, DoneCallback done) {
242 // Schedule onto the default queue, for unbounded concurrency. See b/73520706
243 Env::Default()->SchedClosure([this, context, done]() {
244 OP_REQUIRES_OK_ASYNC(context, DoWork(context), done);
245 done();
246 });
247}
248
249Status XRTExecuteOp::DoWork(OpKernelContext* context) {
250 VLOG(1) << "XRTExecuteOp::Compute";

Callers

nothing calls this directly

Calls 2

DefaultFunction · 0.85
SchedClosureMethod · 0.45

Tested by

no test coverage detected