Renable SAN tests on selective_build_test

Marking the test not portable for mobile platforms.

PiperOrigin-RevId: 323507613
Change-Id: I26d29a57316a02726711460eaf56b6215bacb0e1
This commit is contained in:
Thai Nguyen 2020-07-27 22:06:58 -07:00 committed by TensorFlower Gardener
parent 83870cb25f
commit 9efc52e47d
2 changed files with 2 additions and 4 deletions

View File

@ -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",

View File

@ -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<char*>(data.data());
sample.push_back(data);
tensor->data.raw = reinterpret_cast<char*>(sample.rbegin()->data());
}
// Running inference.