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

Method Compute

tensorflow/core/kernels/queue_op.cc:37–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35}
36
37void QueueOp::Compute(OpKernelContext* context) {
38 ResourceOpKernel<QueueInterface>::Compute(context);
39 mutex_lock l(mu_);
40 if (resource_ && context->track_allocations()) {
41 context->record_persistent_memory_allocation(resource_->MemoryUsed());
42 }
43}
44
45Status QueueOp::VerifyResource(QueueInterface* queue) {
46 return queue->MatchesNodeDef(def());

Callers

nothing calls this directly

Calls 4

track_allocationsMethod · 0.80
ComputeFunction · 0.70
MemoryUsedMethod · 0.45

Tested by

no test coverage detected