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

Method Compute

tensorflow/core/kernels/work_queue_ops.cc:207–213  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

205 }
206
207 void Compute(OpKernelContext* ctx) override {
208 WorkQueue* work_queue = new WorkQueue(shared_name_);
209 Status s = CreateResource(ctx, HandleFromInput(ctx, 0), work_queue);
210 if (!s.ok() && s.code() != error::ALREADY_EXISTS) {
211 OP_REQUIRES(ctx, false, s);
212 }
213 }
214
215 private:
216 string shared_name_;

Callers

nothing calls this directly

Calls 4

CreateResourceFunction · 0.85
HandleFromInputFunction · 0.85
okMethod · 0.45
codeMethod · 0.45

Tested by

no test coverage detected