Changed default options in TfLiteGpuDelegateOptions_New.

options_.egl_display = EGL_NO_DISPLAY; // instead of eglGetCurrentDisplay()
options_.egl_context = EGL_NO_CONTEXT; // instead of eglGetCurrentContext()
If users wants cl-gl sharing, they should specify it explicitly.

PiperOrigin-RevId: 315763722
Change-Id: I3e8aaa876508884a93acfb0e00dded6157530e20
This commit is contained in:
Raman Sarokin 2020-06-10 14:03:21 -07:00 committed by TensorFlower Gardener
parent 31862b7bbe
commit 5123881227
1 changed files with 2 additions and 2 deletions

View File

@ -80,8 +80,8 @@ class Delegate {
options_.compile_options.precision_loss_allowed = 0;
options_.compile_options.inference_priority = TfLiteGpuInferencePriority::
TFLITE_GPU_INFERENCE_PRIORITY_MAX_PRECISION;
options_.egl_display = eglGetCurrentDisplay();
options_.egl_context = eglGetCurrentContext();
options_.egl_display = EGL_NO_DISPLAY;
options_.egl_context = EGL_NO_CONTEXT;
options_.serialized_binary_cache_data = nullptr;
options_.serialized_binary_cache_size = 0;
}