summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXusong Wang <xusongw@google.com>2019-06-07 14:09:34 -0700
committerXusong Wang <xusongw@google.com>2019-06-07 16:47:23 -0700
commit896614c99271e4413091170f32497cbb06901f84 (patch)
treefdfaa1aab0ddf1ccd5bd390a85570254c49cc85d
parent15eab11550666b34b210d7603a2d5b7ba35e7114 (diff)
downloadml-896614c99271e4413091170f32497cbb06901f84.tar.gz
Disable one non-sensible RGG test case on CONV_2D.
In this test, the RGG produces a non-sensible graph with extreme large output gain and highly clamped output range. Bug: 134368996 Test: NeuralNetworksTest_static_fuzzing Change-Id: I4295e7d64e954d560a08fb8ae943eec95aa18d28
-rw-r--r--nn/runtime/test/fuzzing/TestRandomGraph.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/nn/runtime/test/fuzzing/TestRandomGraph.cpp b/nn/runtime/test/fuzzing/TestRandomGraph.cpp
index eb6d4c663..e47ca1840 100644
--- a/nn/runtime/test/fuzzing/TestRandomGraph.cpp
+++ b/nn/runtime/test/fuzzing/TestRandomGraph.cpp
@@ -189,6 +189,15 @@ class RandomGraphTest : public ::testing::TestWithParam<uint32_t> {
}
bool shouldSkipTest(int64_t featureLevel) {
+ static const std::set<std::string> kDisabledTests = {
+ // In this test, the RGG produces a non-sensible graph with extreme large output
+ // gain and highly clamped output range.
+ // TODO: Currently quantized buffer values are uniformly distributed within
+ // [0, 255]. We should investigate on a better buffer value generation
+ // algorithm that represents the real-world cases.
+ "TestRandomGraph_SingleOperationTest_CONV_2D_V1_2_12",
+ };
+ if (kDisabledTests.find(mTestName) != kDisabledTests.end()) return true;
if (featureLevel >= __ANDROID_API_Q__) return false;
const auto& operations = mGraph.getOperations();
for (const auto& op : operations) {