| 35 | } |
| 36 | |
| 37 | void 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 | |
| 45 | Status QueueOp::VerifyResource(QueueInterface* queue) { |
| 46 | return queue->MatchesNodeDef(def()); |
nothing calls this directly
no test coverage detected