From 7b48dab3ac85a79921f29bd093cedda8ab09e213 Mon Sep 17 00:00:00 2001 From: Marat Dukhan Date: Mon, 25 May 2020 20:21:16 -0700 Subject: [PATCH] Prune unused includes in XNNPACK tester headers PiperOrigin-RevId: 313123993 Change-Id: I69549e97cc1c4926ea5c2cab7fb56f3aa1e28b0d --- tensorflow/lite/delegates/xnnpack/BUILD | 5 +++++ .../lite/delegates/xnnpack/binary_elementwise_tester.h | 8 +------- .../lite/delegates/xnnpack/depthwise_conv_2d_tester.h | 8 +------- .../lite/delegates/xnnpack/fully_connected_tester.h | 2 -- tensorflow/lite/delegates/xnnpack/pad_tester.h | 2 -- tensorflow/lite/delegates/xnnpack/pool_2d_tester.h | 8 +------- tensorflow/lite/delegates/xnnpack/softmax_tester.h | 8 +------- .../lite/delegates/xnnpack/unary_elementwise_tester.h | 8 +------- 8 files changed, 10 insertions(+), 39 deletions(-) diff --git a/tensorflow/lite/delegates/xnnpack/BUILD b/tensorflow/lite/delegates/xnnpack/BUILD index 6edb757e83f..1cdba72b615 100644 --- a/tensorflow/lite/delegates/xnnpack/BUILD +++ b/tensorflow/lite/delegates/xnnpack/BUILD @@ -53,6 +53,7 @@ cc_library( deps = [ "//tensorflow/lite:framework", "//tensorflow/lite:schema_fbs_version", + "//tensorflow/lite/c:common", "//tensorflow/lite/kernels:builtin_ops", "//tensorflow/lite/schema:schema_fbs", "@com_google_googletest//:gtest", @@ -68,6 +69,7 @@ cc_library( deps = [ "//tensorflow/lite:framework", "//tensorflow/lite:schema_fbs_version", + "//tensorflow/lite/c:common", "//tensorflow/lite/kernels:builtin_ops", "//tensorflow/lite/schema:schema_fbs", "@com_google_googletest//:gtest", @@ -115,6 +117,7 @@ cc_library( deps = [ "//tensorflow/lite:framework", "//tensorflow/lite:schema_fbs_version", + "//tensorflow/lite/c:common", "//tensorflow/lite/kernels:builtin_ops", "//tensorflow/lite/schema:schema_fbs", "@com_google_googletest//:gtest", @@ -130,6 +133,7 @@ cc_library( deps = [ "//tensorflow/lite:framework", "//tensorflow/lite:schema_fbs_version", + "//tensorflow/lite/c:common", "//tensorflow/lite/kernels:builtin_ops", "//tensorflow/lite/schema:schema_fbs", "@com_google_googletest//:gtest", @@ -145,6 +149,7 @@ cc_library( deps = [ "//tensorflow/lite:framework", "//tensorflow/lite:schema_fbs_version", + "//tensorflow/lite/c:common", "//tensorflow/lite/kernels:builtin_ops", "//tensorflow/lite/schema:schema_fbs", "@com_google_googletest//:gtest", diff --git a/tensorflow/lite/delegates/xnnpack/binary_elementwise_tester.h b/tensorflow/lite/delegates/xnnpack/binary_elementwise_tester.h index 6d9a8b6caa9..15c99c3148d 100644 --- a/tensorflow/lite/delegates/xnnpack/binary_elementwise_tester.h +++ b/tensorflow/lite/delegates/xnnpack/binary_elementwise_tester.h @@ -17,17 +17,11 @@ limitations under the License. #define TENSORFLOW_LITE_DELEGATES_XNNPACK_BINARY_ELEMENTWISE_TESTER_H_ #include -#include -#include #include #include -#include "flatbuffers/flatbuffers.h" // from @flatbuffers -#include "tensorflow/lite/interpreter.h" -#include "tensorflow/lite/kernels/register.h" -#include "tensorflow/lite/model.h" +#include "tensorflow/lite/c/common.h" #include "tensorflow/lite/schema/schema_generated.h" -#include "tensorflow/lite/version.h" namespace tflite { namespace xnnpack { diff --git a/tensorflow/lite/delegates/xnnpack/depthwise_conv_2d_tester.h b/tensorflow/lite/delegates/xnnpack/depthwise_conv_2d_tester.h index ec8e4cea429..16dc5920229 100644 --- a/tensorflow/lite/delegates/xnnpack/depthwise_conv_2d_tester.h +++ b/tensorflow/lite/delegates/xnnpack/depthwise_conv_2d_tester.h @@ -17,17 +17,11 @@ limitations under the License. #define TENSORFLOW_LITE_DELEGATES_XNNPACK_DEPTHWISE_CONV_2D_TESTER_H_ #include -#include -#include #include #include -#include "flatbuffers/flatbuffers.h" // from @flatbuffers -#include "tensorflow/lite/interpreter.h" -#include "tensorflow/lite/kernels/register.h" -#include "tensorflow/lite/model.h" +#include "tensorflow/lite/c/common.h" #include "tensorflow/lite/schema/schema_generated.h" -#include "tensorflow/lite/version.h" namespace tflite { namespace xnnpack { diff --git a/tensorflow/lite/delegates/xnnpack/fully_connected_tester.h b/tensorflow/lite/delegates/xnnpack/fully_connected_tester.h index 1c8e3d5d60c..cf1d5513d46 100644 --- a/tensorflow/lite/delegates/xnnpack/fully_connected_tester.h +++ b/tensorflow/lite/delegates/xnnpack/fully_connected_tester.h @@ -17,8 +17,6 @@ limitations under the License. #define TENSORFLOW_LITE_DELEGATES_XNNPACK_FULLY_CONNECTED_TESTER_H_ #include -#include -#include #include #include diff --git a/tensorflow/lite/delegates/xnnpack/pad_tester.h b/tensorflow/lite/delegates/xnnpack/pad_tester.h index ffcd47e05e9..a6951fdf156 100644 --- a/tensorflow/lite/delegates/xnnpack/pad_tester.h +++ b/tensorflow/lite/delegates/xnnpack/pad_tester.h @@ -17,8 +17,6 @@ limitations under the License. #define TENSORFLOW_LITE_DELEGATES_XNNPACK_PAD_TESTER_H_ #include -#include -#include #include #include diff --git a/tensorflow/lite/delegates/xnnpack/pool_2d_tester.h b/tensorflow/lite/delegates/xnnpack/pool_2d_tester.h index 3125e9231f6..a84be10ad45 100644 --- a/tensorflow/lite/delegates/xnnpack/pool_2d_tester.h +++ b/tensorflow/lite/delegates/xnnpack/pool_2d_tester.h @@ -17,17 +17,11 @@ limitations under the License. #define TENSORFLOW_LITE_DELEGATES_XNNPACK_POOL_2D_TESTER_H_ #include -#include -#include #include #include -#include "flatbuffers/flatbuffers.h" // from @flatbuffers -#include "tensorflow/lite/interpreter.h" -#include "tensorflow/lite/kernels/register.h" -#include "tensorflow/lite/model.h" +#include "tensorflow/lite/c/common.h" #include "tensorflow/lite/schema/schema_generated.h" -#include "tensorflow/lite/version.h" namespace tflite { namespace xnnpack { diff --git a/tensorflow/lite/delegates/xnnpack/softmax_tester.h b/tensorflow/lite/delegates/xnnpack/softmax_tester.h index 9f930a6f21e..674dc9a443e 100644 --- a/tensorflow/lite/delegates/xnnpack/softmax_tester.h +++ b/tensorflow/lite/delegates/xnnpack/softmax_tester.h @@ -17,17 +17,11 @@ limitations under the License. #define TENSORFLOW_LITE_DELEGATES_XNNPACK_SOFTMAX_TESTER_H_ #include -#include -#include #include #include -#include "flatbuffers/flatbuffers.h" // from @flatbuffers -#include "tensorflow/lite/interpreter.h" -#include "tensorflow/lite/kernels/register.h" -#include "tensorflow/lite/model.h" +#include "tensorflow/lite/c/common.h" #include "tensorflow/lite/schema/schema_generated.h" -#include "tensorflow/lite/version.h" namespace tflite { namespace xnnpack { diff --git a/tensorflow/lite/delegates/xnnpack/unary_elementwise_tester.h b/tensorflow/lite/delegates/xnnpack/unary_elementwise_tester.h index 88508ccd1c1..e3c210fd6b3 100644 --- a/tensorflow/lite/delegates/xnnpack/unary_elementwise_tester.h +++ b/tensorflow/lite/delegates/xnnpack/unary_elementwise_tester.h @@ -17,17 +17,11 @@ limitations under the License. #define TENSORFLOW_LITE_DELEGATES_XNNPACK_UNARY_ELEMENTWISE_TESTER_H_ #include -#include -#include #include #include -#include "flatbuffers/flatbuffers.h" // from @flatbuffers -#include "tensorflow/lite/interpreter.h" -#include "tensorflow/lite/kernels/register.h" -#include "tensorflow/lite/model.h" +#include "tensorflow/lite/c/common.h" #include "tensorflow/lite/schema/schema_generated.h" -#include "tensorflow/lite/version.h" namespace tflite { namespace xnnpack {