From 9efc52e47d98fb14886aafeb9aa5d7de7d287a42 Mon Sep 17 00:00:00 2001 From: Thai Nguyen Date: Mon, 27 Jul 2020 22:06:58 -0700 Subject: [PATCH] Renable SAN tests on selective_build_test Marking the test not portable for mobile platforms. PiperOrigin-RevId: 323507613 Change-Id: I26d29a57316a02726711460eaf56b6215bacb0e1 --- tensorflow/lite/testing/BUILD | 4 +--- tensorflow/lite/testing/selective_build_test.cc | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/tensorflow/lite/testing/BUILD b/tensorflow/lite/testing/BUILD index d0744c49445..3d4527e926e 100644 --- a/tensorflow/lite/testing/BUILD +++ b/tensorflow/lite/testing/BUILD @@ -555,9 +555,7 @@ cc_test( ], tags = [ "no_mac", # b/161990368 - "noasan", # b/162027436 - "nomsan", # b/162027436 - "notsan", # b/162027436 + "tflite_not_portable", ], deps = [ ":test_tflite_lib", diff --git a/tensorflow/lite/testing/selective_build_test.cc b/tensorflow/lite/testing/selective_build_test.cc index ad23e382a8d..1a9a5b2efdb 100644 --- a/tensorflow/lite/testing/selective_build_test.cc +++ b/tensorflow/lite/testing/selective_build_test.cc @@ -51,8 +51,8 @@ bool RunWithRandomInputs(const std::string& filename) { for (auto it = data.begin(); it != data.end(); ++it) { *it = random(); } - tensor->data.raw = reinterpret_cast(data.data()); sample.push_back(data); + tensor->data.raw = reinterpret_cast(sample.rbegin()->data()); } // Running inference.