diff options
author | TreeHugger Robot <treehugger-gerrit@google.com> | 2020-03-20 12:55:39 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2020-03-20 12:55:39 +0000 |
commit | 005742de054649ed20b85021c5cc5228dd9b067e (patch) | |
tree | e4e63cfcf72785ba34da07be4a9dad126d357ace /nn/runtime/test/fuzzing | |
parent | 7720040c82375804419366c8c00f5a540b6ddab8 (diff) | |
parent | c0f74da9faad6671bda8d947f8122bfd5141220f (diff) | |
download | ml-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.cpp | 5 |
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; |