summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXusong Wang <xusongw@google.com>2021-07-21 11:54:34 -0700
committerXusong Wang <xusongw@google.com>2021-07-21 11:59:07 -0700
commit3dae6d24586a0a20406fe2b54275e13be0d8aad6 (patch)
tree630fdd64759655a4e72d8dfd9f0e56914247dace
parent87ba76b87818fb618802b71c225201b82257734e (diff)
downloadml-3dae6d24586a0a20406fe2b54275e13be0d8aad6.tar.gz
Skip a RGG test with SIN followed by FLOOR.
TestRandomGraph_RandomGraphTest_LargeGraph_TENSOR_FLOAT32_Rank3_44 generates a graph with a SIN operator followed by a FLOOR operator. The small accuracy mismatch from the SIN operator may be enlarged by the FLOOR operator and result in a test failure that should be permitted. This CL disables this particular test. Fixes: 192049606 Test: NNAPI CTS Change-Id: I6863cb6f476565d73396677bbbe6982c63270d94
-rw-r--r--nn/runtime/test/fuzzing/TestRandomGraph.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/nn/runtime/test/fuzzing/TestRandomGraph.cpp b/nn/runtime/test/fuzzing/TestRandomGraph.cpp
index e668bf9a8..aafcbae09 100644
--- a/nn/runtime/test/fuzzing/TestRandomGraph.cpp
+++ b/nn/runtime/test/fuzzing/TestRandomGraph.cpp
@@ -196,6 +196,10 @@ class RandomGraphTest : public ::testing::TestWithParam<uint32_t> {
// [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",
+ // In this test, the RGG produces a graph with a SIN operator followed by a FLOOR
+ // operator. The small accuracy mismatch from the SIN operator may be enlarged by
+ // the FLOOR operator and result in a test failure that should be permitted.
+ "TestRandomGraph_RandomGraphTest_LargeGraph_TENSOR_FLOAT32_Rank3_44",
};
if (kDisabledTests.find(mTestName) != kDisabledTests.end()) return true;
const auto& operations = mGraph.getOperations();