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

Function TfLiteGpuDelegateCreate

tensorflow/lite/delegates/gpu/gl_delegate.cc:466–472  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

464}
465
466TfLiteDelegate* TfLiteGpuDelegateCreate(
467 const TfLiteGpuDelegateOptions* options) {
468 TFLITE_LOG_PROD_ONCE(tflite::TFLITE_LOG_INFO,
469 "Created TensorFlow Lite delegate for GPU.");
470 auto* gpu_delegate = new tflite::gpu::gl::Delegate(options);
471 return gpu_delegate ? gpu_delegate->tflite_delegate() : nullptr;
472}
473
474void TfLiteGpuDelegateDelete(TfLiteDelegate* delegate) {
475 delete tflite::gpu::gl::GetGpuDelegate(delegate);

Calls 1

tflite_delegateMethod · 0.45

Tested by

no test coverage detected