diff options
author | TreeHugger Robot <treehugger-gerrit@google.com> | 2020-04-07 17:07:30 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2020-04-07 17:07:30 +0000 |
commit | a779a9067ddb684a343432390bf963fa83c16ced (patch) | |
tree | 7b7b5aada48057f3bbea87a19eceb4f31f0ad0d1 /nn/runtime/test/specs/V1_3 | |
parent | ec251f330c74bf156ec13a5f82d87e0c8501af7e (diff) | |
parent | f53199682d0245bc52747d7abe57e8aad9490028 (diff) | |
download | ml-a779a9067ddb684a343432390bf963fa83c16ced.tar.gz |
Merge "Fix HARD_SWISH rank requirement" into rvc-dev
Diffstat (limited to 'nn/runtime/test/specs/V1_3')
-rw-r--r-- | nn/runtime/test/specs/V1_3/hard_swish.mod.py | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/nn/runtime/test/specs/V1_3/hard_swish.mod.py b/nn/runtime/test/specs/V1_3/hard_swish.mod.py index e3875b60b..2ac1f94f0 100644 --- a/nn/runtime/test/specs/V1_3/hard_swish.mod.py +++ b/nn/runtime/test/specs/V1_3/hard_swish.mod.py @@ -63,3 +63,24 @@ test( 1.6123454, 0.0, 0.0, 4.453125, 0.0, 0.0, 0.4923503, 0.5527751 ], ) + +test( + name="5d_input", + input0=Input("input0", "TENSOR_FLOAT32", "{1, 2, 2, 2, 5}"), + output0=Output("output0", "TENSOR_FLOAT32", "{1, 2, 2, 2, 5}"), + input0_data=[ + 4.53125, 3.90625, 3.046875, -8.59375, -1.328125, 1.328125, 0.0, + -8.515625, -8.984375, -0.234375, 0.859375, 9.84375, -0.15625, -8.515625, + 8.671875, 4.609375, 9.21875, -1.796875, 1.171875, 9.375, -8.75, + 2.421875, -8.125, -1.09375, -9.609375, -1.015625, -9.84375, 2.578125, + 4.921875, -5.078125, 5.0, -0.859375, 1.953125, -6.640625, -7.8125, + 4.453125, -4.453125, -6.875, 0.78125, 0.859375 + ], + output0_data=[ + 4.53125, 3.90625, 3.046875, 0.0, -0.3700765, 0.9580485, 0.0, 0.0, 0.0, + -0.1080322, 0.5527751, 9.84375, -0.074056, 0.0, 8.671875, 4.609375, + 9.21875, -0.3603109, 0.8148193, 9.375, 0.0, 2.1885173, 0.0, -0.3474935, + 0.0, -0.3358968, 0.0, 2.3968506, 4.921875, 0.0, 5.0, -0.3065999, + 1.6123454, 0.0, 0.0, 4.453125, 0.0, 0.0, 0.4923503, 0.5527751 + ], +) |