From 3dae6d24586a0a20406fe2b54275e13be0d8aad6 Mon Sep 17 00:00:00 2001 From: Xusong Wang Date: Wed, 21 Jul 2021 11:54:34 -0700 Subject: 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 --- nn/runtime/test/fuzzing/TestRandomGraph.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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 { // [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(); -- cgit v1.2.3