Merge pull request #24689 from aselle/cherry-pick-20190103

Cherry pick build fixes.
This commit is contained in:
Andrew Selle 2019-01-03 14:47:06 -08:00 committed by GitHub
commit ab7929f160
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 39 additions and 5 deletions

View File

@ -652,6 +652,8 @@ cc_test(
"logsoftmax_quantized_test.cc",
],
tags = [
# TODO(b/122242739): Reenable after fixing the flakiness?
"nomac",
"tflite_not_portable",
],
deps = [

View File

@ -348,7 +348,8 @@ tf_cc_test(
"//tensorflow/core:lib",
"//tensorflow/core:ops",
"//tensorflow/core:protos_all_cc",
"@com_google_googletest//:gtest_main",
"//tensorflow/lite/testing:util",
"@com_google_googletest//:gtest",
],
)
@ -387,7 +388,8 @@ tf_cc_test(
":model",
":tooling_util",
"//tensorflow/core:lib",
"@com_google_googletest//:gtest_main",
"//tensorflow/lite/testing:util",
"@com_google_googletest//:gtest",
],
)
@ -451,12 +453,13 @@ tf_cc_test(
":toco_port",
":toco_tooling",
":types_proto_cc",
"@com_google_googletest//:gtest_main",
"@com_google_googletest//:gtest",
"@com_google_absl//absl/strings",
"//tensorflow/core:lib",
# We cannot embed the core:ops dependency directly into :toco_tooling as
# it can conflict with downstream deps when toco is used as a library.
"//tensorflow/core:ops",
"//tensorflow/lite/testing:util",
],
)
@ -468,6 +471,7 @@ tf_cc_test(
],
deps = [
":toco_port",
"@com_google_googletest//:gtest_main",
"//tensorflow/lite/testing:util",
"@com_google_googletest//:gtest",
],
)

View File

@ -23,6 +23,7 @@ limitations under the License.
#include "tensorflow/core/framework/tensor.pb.h"
#include "tensorflow/core/framework/tensor_shape.pb.h"
#include "tensorflow/core/lib/core/status.h"
#include "tensorflow/lite/testing/util.h"
namespace toco {
@ -432,3 +433,9 @@ TEST(ImportTest, UnsupportedOpWithMultipleOutputs) {
} // namespace
} // namespace toco
int main(int argc, char** argv) {
::tflite::LogToStderr();
::testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}

View File

@ -15,6 +15,7 @@ limitations under the License.
#include "tensorflow/lite/toco/toco_convert.h"
#include <gmock/gmock.h>
#include <gtest/gtest.h>
#include "tensorflow/lite/testing/util.h"
namespace toco {
namespace {
@ -171,3 +172,9 @@ TEST(TocoTest, TransientStringTensors) {
} // namespace
} // namespace toco
int main(int argc, char** argv) {
::tflite::LogToStderr();
::testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}

View File

@ -13,6 +13,7 @@ See the License for the specific language governing permissions and
limitations under the License.
==============================================================================*/
#include "tensorflow/lite/toco/toco_port.h"
#include "tensorflow/lite/testing/util.h"
#include "tensorflow/lite/toco/toco_types.h"
#include <gmock/gmock.h>
@ -56,3 +57,9 @@ TEST(TocoPortTest, JoinPath) {
} // namespace
} // namespace port
} // namespace toco
int main(int argc, char** argv) {
::tflite::LogToStderr();
::testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}

View File

@ -16,9 +16,10 @@ limitations under the License.
#include <vector>
#include <gtest/gtest.h>
#include "tensorflow/core/lib/core/status.h"
#include "tensorflow/lite/testing/util.h"
#include "tensorflow/lite/toco/model.h"
#include "tensorflow/lite/toco/tooling_util.h"
#include "tensorflow/core/lib/core/status.h"
namespace toco {
@ -203,3 +204,9 @@ TEST(FusedActivationTest, DefaultsToUnfused) {
}
} // namespace toco
int main(int argc, char** argv) {
::tflite::LogToStderr();
::testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}