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

Method ComputeAsync

tensorflow/core/kernels/barrier_ops.cc:507–515  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

505 : AsyncOpKernel(context) {}
506
507 void ComputeAsync(OpKernelContext* ctx, DoneCallback callback) final {
508 Barrier* barrier = nullptr;
509 OP_REQUIRES_OK_ASYNC(ctx, GetResourceFromContext(ctx, "handle", &barrier),
510 callback);
511 ComputeAsync(ctx, barrier, [callback, barrier]() {
512 barrier->Unref();
513 callback();
514 });
515 }
516
517 protected:
518 virtual void ComputeAsync(OpKernelContext* ctx, Barrier* barrier,

Callers

nothing calls this directly

Calls 3

GetResourceFromContextFunction · 0.85
callbackFunction · 0.85
UnrefMethod · 0.45

Tested by

no test coverage detected