MCPcopy Create free account
hub / github.com/alibaba/euler / Compute

Method Compute

euler/core/framework/op_kernel.cc:73–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71OpKernel::~OpKernel() { }
72
73void AsyncOpKernel::Compute(const DAGNodeProto& node_def,
74 OpKernelContext* ctx) {
75 Signal sig;
76 AsyncCompute(node_def, ctx, [&sig] () { sig.Notify(); });
77 sig.Wait();
78}
79
80OpKernelContext::~OpKernelContext() {
81 MutexLock l(&mu_);

Callers

nothing calls this directly

Calls 2

NotifyMethod · 0.80
WaitMethod · 0.45

Tested by

no test coverage detected