diff options
author | android-build-prod (mdb) <android-build-team-robot@google.com> | 2019-12-10 21:05:13 +0000 |
---|---|---|
committer | android-build-prod (mdb) <android-build-team-robot@google.com> | 2019-12-10 21:05:13 +0000 |
commit | 09f58ecef082f9c54f1e9cc917813777af22991c (patch) | |
tree | 5d794088dc8eb61e0e82e0d1528a812f0ea7b0c7 | |
parent | a3494f0046ea1b6af36cc866964bbaa1b4c4411f (diff) | |
parent | b722e112ff41b48079caafb6df46be71243f2e11 (diff) | |
download | ml-09f58ecef082f9c54f1e9cc917813777af22991c.tar.gz |
Snap for 6061130 from b722e112ff41b48079caafb6df46be71243f2e11 to android10-tests-release
Change-Id: Idb0037cc4f5e8046c093a5ba04cb41f753ce0b99
-rw-r--r-- | nn/runtime/test/fuzzing/TestRandomGraph.cpp | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/nn/runtime/test/fuzzing/TestRandomGraph.cpp b/nn/runtime/test/fuzzing/TestRandomGraph.cpp index 886de6f7a..a6d9e8bda 100644 --- a/nn/runtime/test/fuzzing/TestRandomGraph.cpp +++ b/nn/runtime/test/fuzzing/TestRandomGraph.cpp @@ -198,15 +198,20 @@ class RandomGraphTest : public ::testing::TestWithParam<uint32_t> { "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) { - // Skip if testing BATCH_TO_SPACE_ND with batch dimension == 1. + // Skip if testing BATCH_TO_SPACE_ND with batch dimension == 1 on pre-Q drivers. if (op.opType == ANEURALNETWORKS_BATCH_TO_SPACE_ND && - op.inputs[0]->dimensions[0].getValue() == 1) + op.inputs[0]->dimensions[0].getValue() == 1 && featureLevel < __ANDROID_API_Q__) return true; + // We have a bug in the reference implementation of INSTANCE_NORMALIZATION. if (op.opType == ANEURALNETWORKS_INSTANCE_NORMALIZATION) return true; + + // We have a bug in the reference implementation of quantized L2_NORMALIZATION. + if (op.opType == ANEURALNETWORKS_L2_NORMALIZATION && + op.inputs[0]->dataType == test_wrapper::Type::TENSOR_QUANT8_ASYMM) + return true; } return false; } |