From bbf6da560a77f42e296b2ef2105e5cd478e366fe Mon Sep 17 00:00:00 2001 From: Robert David Date: Wed, 27 May 2020 10:27:57 -0700 Subject: [PATCH] Google specific refactoring. PiperOrigin-RevId: 313415673 Change-Id: I9f4948710229d154871afc5ef25aaf6799ddc380 --- tensorflow/lite/delegates/gpu/cl/api.cc | 3 ++- tensorflow/lite/delegates/gpu/cl/api.h | 3 ++- tensorflow/lite/delegates/gpu/cl/egl_sync.h | 1 + tensorflow/lite/delegates/gpu/cl/gl_interop.h | 5 +++-- tensorflow/lite/delegates/gpu/cl/gpu_api_delegate.h | 4 ++-- tensorflow/lite/delegates/gpu/gl_delegate.cc | 5 +++-- tensorflow/lite/delegates/gpu/gl_delegate.h | 2 +- 7 files changed, 14 insertions(+), 9 deletions(-) diff --git a/tensorflow/lite/delegates/gpu/cl/api.cc b/tensorflow/lite/delegates/gpu/cl/api.cc index 475eed4dccc..e82f67392e8 100644 --- a/tensorflow/lite/delegates/gpu/cl/api.cc +++ b/tensorflow/lite/delegates/gpu/cl/api.cc @@ -15,10 +15,11 @@ limitations under the License. #include "tensorflow/lite/delegates/gpu/cl/api.h" +#include + #include #include -#include #include "absl/memory/memory.h" #include "absl/types/span.h" #include "tensorflow/lite/delegates/gpu/cl/cl_command_queue.h" diff --git a/tensorflow/lite/delegates/gpu/cl/api.h b/tensorflow/lite/delegates/gpu/cl/api.h index 9d3f9f7214c..bddf7de3363 100644 --- a/tensorflow/lite/delegates/gpu/cl/api.h +++ b/tensorflow/lite/delegates/gpu/cl/api.h @@ -16,10 +16,11 @@ limitations under the License. #ifndef TENSORFLOW_LITE_DELEGATES_GPU_CL_API_H_ #define TENSORFLOW_LITE_DELEGATES_GPU_CL_API_H_ +#include + #include #include -#include #include "absl/types/span.h" #include "tensorflow/lite/delegates/gpu/api.h" #include "tensorflow/lite/delegates/gpu/common/model.h" diff --git a/tensorflow/lite/delegates/gpu/cl/egl_sync.h b/tensorflow/lite/delegates/gpu/cl/egl_sync.h index d0943a797ee..dbea2436d73 100644 --- a/tensorflow/lite/delegates/gpu/cl/egl_sync.h +++ b/tensorflow/lite/delegates/gpu/cl/egl_sync.h @@ -18,6 +18,7 @@ limitations under the License. #include #include + #include "tensorflow/lite/delegates/gpu/common/status.h" namespace tflite { diff --git a/tensorflow/lite/delegates/gpu/cl/gl_interop.h b/tensorflow/lite/delegates/gpu/cl/gl_interop.h index 1ca0181e8e5..aac769b9682 100644 --- a/tensorflow/lite/delegates/gpu/cl/gl_interop.h +++ b/tensorflow/lite/delegates/gpu/cl/gl_interop.h @@ -16,10 +16,11 @@ limitations under the License. #ifndef TENSORFLOW_LITE_DELEGATES_GPU_CL_GL_INTEROP_H_ #define TENSORFLOW_LITE_DELEGATES_GPU_CL_GL_INTEROP_H_ -#include - #include #include + +#include + #include "tensorflow/lite/delegates/gpu/cl/cl_command_queue.h" #include "tensorflow/lite/delegates/gpu/cl/cl_context.h" #include "tensorflow/lite/delegates/gpu/cl/cl_device.h" diff --git a/tensorflow/lite/delegates/gpu/cl/gpu_api_delegate.h b/tensorflow/lite/delegates/gpu/cl/gpu_api_delegate.h index c3df1f7a426..1a9fb73e6ab 100644 --- a/tensorflow/lite/delegates/gpu/cl/gpu_api_delegate.h +++ b/tensorflow/lite/delegates/gpu/cl/gpu_api_delegate.h @@ -16,10 +16,10 @@ limitations under the License. #ifndef TENSORFLOW_LITE_DELEGATES_GPU_CL_GPU_API_DELEGATE_H_ #define TENSORFLOW_LITE_DELEGATES_GPU_CL_GPU_API_DELEGATE_H_ -#include - #include #include +#include + #include "tensorflow/lite/c/common.h" #include "tensorflow/lite/delegates/gpu/delegate.h" diff --git a/tensorflow/lite/delegates/gpu/gl_delegate.cc b/tensorflow/lite/delegates/gpu/gl_delegate.cc index f6b2067d90c..f18c665a15d 100644 --- a/tensorflow/lite/delegates/gpu/gl_delegate.cc +++ b/tensorflow/lite/delegates/gpu/gl_delegate.cc @@ -15,6 +15,9 @@ limitations under the License. #include "tensorflow/lite/delegates/gpu/gl_delegate.h" +#include +#include + #include #include #include @@ -22,8 +25,6 @@ limitations under the License. #include #include -#include -#include #include "absl/types/span.h" #include "tensorflow/lite/builtin_ops.h" #include "tensorflow/lite/c/common.h" diff --git a/tensorflow/lite/delegates/gpu/gl_delegate.h b/tensorflow/lite/delegates/gpu/gl_delegate.h index bfc15fb120e..fa8eec2ad6b 100644 --- a/tensorflow/lite/delegates/gpu/gl_delegate.h +++ b/tensorflow/lite/delegates/gpu/gl_delegate.h @@ -16,9 +16,9 @@ limitations under the License. #ifndef TENSORFLOW_LITE_DELEGATES_GPU_GL_DELEGATE_H_ #define TENSORFLOW_LITE_DELEGATES_GPU_GL_DELEGATE_H_ +#include #include -#include #include "absl/base/macros.h" #include "tensorflow/lite/c/common.h"