summaryrefslogtreecommitdiff
path: root/nn/runtime/test/fuzzing
diff options
context:
space:
mode:
authorXusong Wang <xusongw@google.com>2020-04-28 11:02:21 -0700
committerXusong Wang <xusongw@google.com>2020-04-29 13:31:18 -0700
commit6058d99f10432e2fe734c52b20ab6aa5c9308bca (patch)
tree6e18607ed10a5340ca6bbefa9443eef21fc4df23 /nn/runtime/test/fuzzing
parentdcca070bcce9e440d41f007a0d2311868c381ea3 (diff)
downloadml-6058d99f10432e2fe734c52b20ab6aa5c9308bca.tar.gz
Re-enable tests that are previously disabled.
Bug: 140641425 Bug: 151328024 Bug: 152446228 Bug: 152445711 Bug: 152446298 Fixes: 152446228 Test: NNT_static Test: NNT_static_fuzzing Change-Id: Ifd1f45a2b058fe9996dca817a067ce2ad6d47b46
Diffstat (limited to 'nn/runtime/test/fuzzing')
-rw-r--r--nn/runtime/test/fuzzing/TestRandomGraph.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/nn/runtime/test/fuzzing/TestRandomGraph.cpp b/nn/runtime/test/fuzzing/TestRandomGraph.cpp
index 979855922..f575e9d5a 100644
--- a/nn/runtime/test/fuzzing/TestRandomGraph.cpp
+++ b/nn/runtime/test/fuzzing/TestRandomGraph.cpp
@@ -211,13 +211,13 @@ class RandomGraphTest : public ::testing::TestWithParam<uint32_t> {
featureLevel <= __ANDROID_API_Q__) {
return true;
}
- // TODO(xusongw): Remove after b/151328024, b/152446228, b/152445711, and b/152446298
- // are resolved.
- if ((op.type == TestOperationType::ROI_ALIGN || op.type == TestOperationType::ADD ||
- op.type == TestOperationType::SUB || op.type == TestOperationType::MAXIMUM ||
- op.type == TestOperationType::MINIMUM) &&
+ // Skip the following operations for 1.2 and earlier devices.
+ if ((op.type == TestOperationType::ADD || op.type == TestOperationType::SUB ||
+ op.type == TestOperationType::MAXIMUM || op.type == TestOperationType::MINIMUM ||
+ op.type == TestOperationType::ROI_ALIGN) &&
mTestModel.main.operands[op.inputs[0]].type ==
- TestOperandType::TENSOR_QUANT8_ASYMM) {
+ TestOperandType::TENSOR_QUANT8_ASYMM &&
+ featureLevel <= __ANDROID_API_Q__) {
return true;
}
}