summaryrefslogtreecommitdiff
path: root/nn/runtime/test/fuzzing
diff options
context:
space:
mode:
authorTreeHugger Robot <treehugger-gerrit@google.com>2020-03-20 12:55:39 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2020-03-20 12:55:39 +0000
commit005742de054649ed20b85021c5cc5228dd9b067e (patch)
treee4e63cfcf72785ba34da07be4a9dad126d357ace /nn/runtime/test/fuzzing
parent7720040c82375804419366c8c00f5a540b6ddab8 (diff)
parentc0f74da9faad6671bda8d947f8122bfd5141220f (diff)
downloadml-005742de054649ed20b85021c5cc5228dd9b067e.tar.gz
Merge changes I97e66261,I8d1eccd3 into rvc-dev
* changes: Document and test L2_NORMALIZATION with input of all zeros. Add tests for corner cases of quant8 l2 norm.
Diffstat (limited to 'nn/runtime/test/fuzzing')
-rw-r--r--nn/runtime/test/fuzzing/TestRandomGraph.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/nn/runtime/test/fuzzing/TestRandomGraph.cpp b/nn/runtime/test/fuzzing/TestRandomGraph.cpp
index 25cf86a40..7facc363a 100644
--- a/nn/runtime/test/fuzzing/TestRandomGraph.cpp
+++ b/nn/runtime/test/fuzzing/TestRandomGraph.cpp
@@ -205,6 +205,11 @@ class RandomGraphTest : public ::testing::TestWithParam<uint32_t> {
featureLevel <= __ANDROID_API_Q__) {
return true;
}
+ // L2_NORMALIZATION on axis of all zeros is undefined before R.
+ if (op.type == TestOperationType::L2_NORMALIZATION &&
+ featureLevel <= __ANDROID_API_Q__) {
+ return true;
+ }
// TODO(xusongw): Remove after b/151328024 is resolved.
if (op.type == TestOperationType::ROI_ALIGN) {
return true;