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

Method Run

tensorflow/lite/delegates/gpu/cl/api.cc:470–486  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

468 }
469
470 Status Run() override {
471 if (gl_interop_fabric_) {
472 RETURN_IF_ERROR(gl_interop_fabric_->Start());
473 }
474 for (auto& obj : inputs_) {
475 RETURN_IF_ERROR(obj->CopyFromExternalObject());
476 }
477 RETURN_IF_ERROR(context_->AddToQueue(environment_->queue()));
478 clFlush(environment_->queue()->queue());
479 for (auto& obj : outputs_) {
480 RETURN_IF_ERROR(obj->CopyToExternalObject());
481 }
482 if (gl_interop_fabric_) {
483 RETURN_IF_ERROR(gl_interop_fabric_->Finish());
484 }
485 return OkStatus();
486 }
487
488 private:
489 static Status LinkTensors(const std::vector<TensorTieDef>& defs,

Callers 1

InvokeMethod · 0.45

Calls 7

OkStatusFunction · 0.85
StartMethod · 0.45
AddToQueueMethod · 0.45
queueMethod · 0.45
CopyToExternalObjectMethod · 0.45
FinishMethod · 0.45

Tested by

no test coverage detected