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

Method AddToQueue

tensorflow/lite/delegates/gpu/cl/inference_context.cc:356–370  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

354}
355
356Status InferenceContext::AddToQueue(CLCommandQueue* queue) {
357 if (need_manual_release_) {
358 if (prev_enqueue_start_point_.is_valid()) {
359 prev_enqueue_start_point_.Wait();
360 }
361 RETURN_IF_ERROR(queue->EnqueueEvent(&prev_enqueue_start_point_));
362 }
363 for (auto& node : nodes_) {
364 RETURN_IF_ERROR(node.operations[0]->AddToQueue(queue));
365 }
366 if (need_flush_) {
367 clFlush(queue->queue());
368 }
369 return OkStatus();
370}
371
372Status InferenceContext::Profile(ProfilingCommandQueue* queue,
373 ProfilingInfo* result) {

Callers 1

ProfileMethod · 0.45

Calls 5

OkStatusFunction · 0.85
EnqueueEventMethod · 0.80
is_validMethod · 0.45
WaitMethod · 0.45
queueMethod · 0.45

Tested by

no test coverage detected