From 2650619387391a0a349cfa20a092b70ad0f8d375 Mon Sep 17 00:00:00 2001 From: Chao Mei Date: Mon, 8 Jun 2020 01:50:33 -0700 Subject: [PATCH] Fix the compilation issue on macOS for model_xnnpack_test. PiperOrigin-RevId: 315232566 Change-Id: Id531f93890da147f2fb7378c7226cbf52a4fdc87 --- tensorflow/lite/BUILD | 3 +-- tensorflow/lite/model_xnnpack_test.cc | 12 ++---------- 2 files changed, 3 insertions(+), 12 deletions(-) diff --git a/tensorflow/lite/BUILD b/tensorflow/lite/BUILD index a888cbd9407..4eb89151f46 100644 --- a/tensorflow/lite/BUILD +++ b/tensorflow/lite/BUILD @@ -508,8 +508,7 @@ cc_test( ":util", "//tensorflow/lite/c:common", "//tensorflow/lite/kernels:builtin_ops", - "//tensorflow/lite/testing:util", - "@com_google_googletest//:gtest", + "@com_google_googletest//:gtest_main", ], ) diff --git a/tensorflow/lite/model_xnnpack_test.cc b/tensorflow/lite/model_xnnpack_test.cc index 9c06147f602..1a7376bfdcf 100644 --- a/tensorflow/lite/model_xnnpack_test.cc +++ b/tensorflow/lite/model_xnnpack_test.cc @@ -1,4 +1,4 @@ -/* Copyright 2018 The TensorFlow Authors. All Rights Reserved. +/* Copyright 2020 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -12,14 +12,12 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "tensorflow/lite/model.h" - #include #include #include "tensorflow/lite/core/macros.h" #include "tensorflow/lite/kernels/register.h" -#include "tensorflow/lite/testing/util.h" +#include "tensorflow/lite/model.h" #include "tensorflow/lite/util.h" namespace tflite { @@ -51,9 +49,3 @@ TEST(FloatModel, WithXnnpackDelegate) { } } // namespace tflite - -int main(int argc, char** argv) { - ::tflite::LogToStderr(); - ::testing::InitGoogleTest(&argc, argv); - return RUN_ALL_TESTS(); -}