diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-12 05:43:14 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-12 05:43:14 +0000 |
commit | 8dd16259287f58f9273002717ec4d27e97127719 (patch) | |
tree | 3863e62a53829a84037444beab3abd4ed9dfc7d0 /testing/web-platform/tests/webnn/resources/test_data/softplus.json | |
parent | Releasing progress-linux version 126.0.1-1~progress7.99u1. (diff) | |
download | firefox-8dd16259287f58f9273002717ec4d27e97127719.tar.xz firefox-8dd16259287f58f9273002717ec4d27e97127719.zip |
Merging upstream version 127.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/web-platform/tests/webnn/resources/test_data/softplus.json')
-rw-r--r-- | testing/web-platform/tests/webnn/resources/test_data/softplus.json | 152 |
1 files changed, 7 insertions, 145 deletions
diff --git a/testing/web-platform/tests/webnn/resources/test_data/softplus.json b/testing/web-platform/tests/webnn/resources/test_data/softplus.json index eb05b7b281..373612d5ca 100644 --- a/testing/web-platform/tests/webnn/resources/test_data/softplus.json +++ b/testing/web-platform/tests/webnn/resources/test_data/softplus.json @@ -1,7 +1,7 @@ -{ // softplus: The calculation follows the expression ln(1 + exp(steepness * x)) / steepness. +{ // softplus: The calculation follows the expression ln(1 + exp(x)). "tests": [ { - "name": "softplus float32 1D constant tensor default options", // default options: {steepness: 1} + "name": "softplus float32 1D constant tensor", "inputs": { "x": { "shape": [24], @@ -68,7 +68,7 @@ } }, { - "name": "softplus float32 1D tensor default options", // default options: {steepness: 1} + "name": "softplus float32 1D tensor", "inputs": { "x": { "shape": [24], @@ -134,7 +134,7 @@ } }, { - "name": "softplus float32 2D tensor default options", + "name": "softplus float32 2D tensor", "inputs": { "x": { "shape": [4, 6], @@ -200,7 +200,7 @@ } }, { - "name": "softplus float32 3D tensor default options", + "name": "softplus float32 3D tensor", "inputs": { "x": { "shape": [2, 3, 4], @@ -266,7 +266,7 @@ } }, { - "name": "softplus float32 4D tensor default options", + "name": "softplus float32 4D tensor", "inputs": { "x": { "shape": [1, 2, 3, 4], @@ -332,7 +332,7 @@ } }, { - "name": "softplus float32 5D tensor default options", + "name": "softplus float32 5D tensor", "inputs": { "x": { "shape": [1, 2, 1, 3, 4], @@ -396,144 +396,6 @@ ], "type": "float32" } - }, - { - "name": "softplus both positive float32 4D tensor and options.steepness", - "inputs": { - "x": { - "shape": [1, 2, 3, 4], - "data": [ - 5.626614582460632, - 5.167487045486892, - 4.0146356193402655, - 9.48003299650489, - 9.989938045769978, - 7.0654412821434125, - 2.132681001794825, - 8.187151346059956, - 5.169976220175496, - 2.1044997879382077, - 3.523329401138895, - 4.136340646976668, - 1.7418719794295656, - 5.145224066290767, - 5.015515309165462, - 0.045903935074711466, - 2.9570898924917377, - 3.959244712098706, - 5.517926978255181, - 7.192322388417094, - 8.76492480390928, - 1.3734704039113388, - 8.930669016709397, - 8.660283210871246 - ], - "type": "float32" - } - }, - "options": { - "steepness": 1.5104469060897827 - }, - "expected": { - "name": "output", - "shape": [1, 2, 3, 4], - "data": [ - 5.626749515533447, - 5.167757034301758, - 4.016173362731934, - 9.480032920837402, - 9.989937782287598, - 7.065456390380859, - 2.158585548400879, - 8.187153816223145, - 5.170245170593262, - 2.1315081119537354, - 3.526555061340332, - 4.137620449066162, - 1.7879058122634888, - 5.145503044128418, - 5.015854835510254, - 0.4822517931461334, - 2.964651584625244, - 3.960916519165039, - 5.518085956573486, - 7.19233512878418, - 8.764925956726074, - 1.4518096446990967, - 8.930669784545898, - 8.660284042358398 - ], - "type": "float32" - } - }, - { - "name": "softplus both negative float32 4D tensor and options.steepness", - "inputs": { - "x": { - "shape": [1, 2, 3, 4], - "data": [ - -5.584833476104802, - -8.188738740810354, - -8.981280004134987, - -1.7315531899284586, - -0.7266543578958906, - -0.0034800119290885334, - -7.378389455552106, - -8.907525953796949, - -6.0483786568116304, - -6.328561142365743, - -2.6006513567654626, - -5.02005264196455, - -2.0647716093484414, - -1.5499896740695434, - -2.221591675966657, - -1.1088025713211636, - -2.7854626064634385, - -2.105037489961294, - -5.144277741727352, - -5.081219916574497, - -7.499426297617635, - -2.4305558382286545, - -8.390520024268328, - -0.07117499202643174 - ], - "type": "float32" - } - }, - "options": { - "steepness": -1.2985155767552126 - }, - "expected": { - "name": "output", - "shape": [1, 2, 3, 4], - "data": [ - -5.585379123687744, - -8.188756942749023, - -8.981287002563477, - -1.8088372945785522, - -0.9798305630683899, - -0.5355416536331177, - -7.378442287445068, - -8.907533645629883, - -6.048677444458008, - -6.328769207000732, - -2.626511573791504, - -5.021188259124756, - -2.1157851219177246, - -1.6465802192687988, - -2.2634570598602295, - -1.2725814580917358, - -2.805877923965454, - -2.1535322666168213, - -5.145244121551514, - -5.082269191741943, - -7.499471664428711, - -2.4626762866973877, - -8.390534400939941, - -0.5702091455459595 - ], - "type": "float32" - } } ] }
\ No newline at end of file |