summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/webnn/resources/test_data/sqrt.json
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 00:47:55 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 00:47:55 +0000
commit26a029d407be480d791972afb5975cf62c9360a6 (patch)
treef435a8308119effd964b339f76abb83a57c29483 /testing/web-platform/tests/webnn/resources/test_data/sqrt.json
parentInitial commit. (diff)
downloadfirefox-26a029d407be480d791972afb5975cf62c9360a6.tar.xz
firefox-26a029d407be480d791972afb5975cf62c9360a6.zip
Adding upstream version 124.0.1.upstream/124.0.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/web-platform/tests/webnn/resources/test_data/sqrt.json')
-rw-r--r--testing/web-platform/tests/webnn/resources/test_data/sqrt.json421
1 files changed, 421 insertions, 0 deletions
diff --git a/testing/web-platform/tests/webnn/resources/test_data/sqrt.json b/testing/web-platform/tests/webnn/resources/test_data/sqrt.json
new file mode 100644
index 0000000000..fa59308d45
--- /dev/null
+++ b/testing/web-platform/tests/webnn/resources/test_data/sqrt.json
@@ -0,0 +1,421 @@
+{
+ "tests": [
+ {
+ "name": "sqrt float32 0D scalar",
+ "inputs": {
+ "x": {
+ "shape": [],
+ "data": [
+ 4.004463832628975
+ ],
+ "type": "float32"
+ }
+ },
+ "expected": {
+ "name": "output",
+ "shape": [],
+ "data": [
+ 2.001115560531616
+ ],
+ "type": "float32"
+ }
+ },
+ {
+ "name": "sqrt float32 1D constant tensor",
+ "inputs": {
+ "x": {
+ "shape": [24],
+ "data": [
+ 7.256007082508322,
+ 7.786442153556337,
+ 1.3684587069592324,
+ 8.053416211473843,
+ 9.131288551146515,
+ 8.525780428509535,
+ 4.870553385406751,
+ 7.625959393700068,
+ 2.7050268401423483,
+ 8.709602770137977,
+ 3.2687935624375797,
+ 4.712883187439902,
+ 8.669182019771712,
+ 8.82960710328718,
+ 0.5529024533541915,
+ 7.95877117461449,
+ 4.096406313025051,
+ 7.919884221032476,
+ 4.424484759327438,
+ 0.09894099762703057,
+ 4.690024907987658,
+ 1.5277378145575349,
+ 5.929779749165696,
+ 6.06647154134714
+ ],
+ "type": "float32",
+ "constant": true
+ }
+ },
+ "expected": {
+ "name": "output",
+ "shape": [24],
+ "data": [
+ 2.693697690963745,
+ 2.790419816970825,
+ 1.1698113679885864,
+ 2.8378541469573975,
+ 3.0218021869659424,
+ 2.919893980026245,
+ 2.20693302154541,
+ 2.7615139484405518,
+ 1.644696593284607,
+ 2.9512035846710205,
+ 1.8079805374145508,
+ 2.170917510986328,
+ 2.944347381591797,
+ 2.9714653491973877,
+ 0.7435740828514099,
+ 2.821129322052002,
+ 2.023958206176758,
+ 2.8142287731170654,
+ 2.1034460067749023,
+ 0.31454887986183167,
+ 2.165646553039551,
+ 1.2360169887542725,
+ 2.4351139068603516,
+ 2.4630208015441895
+ ],
+ "type": "float32"
+ }
+ },
+ {
+ "name": "sqrt float32 1D tensor",
+ "inputs": {
+ "x": {
+ "shape": [24],
+ "data": [
+ 7.256007082508322,
+ 7.786442153556337,
+ 1.3684587069592324,
+ 8.053416211473843,
+ 9.131288551146515,
+ 8.525780428509535,
+ 4.870553385406751,
+ 7.625959393700068,
+ 2.7050268401423483,
+ 8.709602770137977,
+ 3.2687935624375797,
+ 4.712883187439902,
+ 8.669182019771712,
+ 8.82960710328718,
+ 0.5529024533541915,
+ 7.95877117461449,
+ 4.096406313025051,
+ 7.919884221032476,
+ 4.424484759327438,
+ 0.09894099762703057,
+ 4.690024907987658,
+ 1.5277378145575349,
+ 5.929779749165696,
+ 6.06647154134714
+ ],
+ "type": "float32"
+ }
+ },
+ "expected": {
+ "name": "output",
+ "shape": [24],
+ "data": [
+ 2.693697690963745,
+ 2.790419816970825,
+ 1.1698113679885864,
+ 2.8378541469573975,
+ 3.0218021869659424,
+ 2.919893980026245,
+ 2.20693302154541,
+ 2.7615139484405518,
+ 1.644696593284607,
+ 2.9512035846710205,
+ 1.8079805374145508,
+ 2.170917510986328,
+ 2.944347381591797,
+ 2.9714653491973877,
+ 0.7435740828514099,
+ 2.821129322052002,
+ 2.023958206176758,
+ 2.8142287731170654,
+ 2.1034460067749023,
+ 0.31454887986183167,
+ 2.165646553039551,
+ 1.2360169887542725,
+ 2.4351139068603516,
+ 2.4630208015441895
+ ],
+ "type": "float32"
+ }
+ },
+ {
+ "name": "sqrt float32 2D tensor",
+ "inputs": {
+ "x": {
+ "shape": [4, 6],
+ "data": [
+ 7.256007082508322,
+ 7.786442153556337,
+ 1.3684587069592324,
+ 8.053416211473843,
+ 9.131288551146515,
+ 8.525780428509535,
+ 4.870553385406751,
+ 7.625959393700068,
+ 2.7050268401423483,
+ 8.709602770137977,
+ 3.2687935624375797,
+ 4.712883187439902,
+ 8.669182019771712,
+ 8.82960710328718,
+ 0.5529024533541915,
+ 7.95877117461449,
+ 4.096406313025051,
+ 7.919884221032476,
+ 4.424484759327438,
+ 0.09894099762703057,
+ 4.690024907987658,
+ 1.5277378145575349,
+ 5.929779749165696,
+ 6.06647154134714
+ ],
+ "type": "float32"
+ }
+ },
+ "expected": {
+ "name": "output",
+ "shape": [4, 6],
+ "data": [
+ 2.693697690963745,
+ 2.790419816970825,
+ 1.1698113679885864,
+ 2.8378541469573975,
+ 3.0218021869659424,
+ 2.919893980026245,
+ 2.20693302154541,
+ 2.7615139484405518,
+ 1.644696593284607,
+ 2.9512035846710205,
+ 1.8079805374145508,
+ 2.170917510986328,
+ 2.944347381591797,
+ 2.9714653491973877,
+ 0.7435740828514099,
+ 2.821129322052002,
+ 2.023958206176758,
+ 2.8142287731170654,
+ 2.1034460067749023,
+ 0.31454887986183167,
+ 2.165646553039551,
+ 1.2360169887542725,
+ 2.4351139068603516,
+ 2.4630208015441895
+ ],
+ "type": "float32"
+ }
+ },
+ {
+ "name": "sqrt float32 3D tensor",
+ "inputs": {
+ "x": {
+ "shape": [2, 3, 4],
+ "data": [
+ 7.256007082508322,
+ 7.786442153556337,
+ 1.3684587069592324,
+ 8.053416211473843,
+ 9.131288551146515,
+ 8.525780428509535,
+ 4.870553385406751,
+ 7.625959393700068,
+ 2.7050268401423483,
+ 8.709602770137977,
+ 3.2687935624375797,
+ 4.712883187439902,
+ 8.669182019771712,
+ 8.82960710328718,
+ 0.5529024533541915,
+ 7.95877117461449,
+ 4.096406313025051,
+ 7.919884221032476,
+ 4.424484759327438,
+ 0.09894099762703057,
+ 4.690024907987658,
+ 1.5277378145575349,
+ 5.929779749165696,
+ 6.06647154134714
+ ],
+ "type": "float32"
+ }
+ },
+ "expected": {
+ "name": "output",
+ "shape": [2, 3, 4],
+ "data": [
+ 2.693697690963745,
+ 2.790419816970825,
+ 1.1698113679885864,
+ 2.8378541469573975,
+ 3.0218021869659424,
+ 2.919893980026245,
+ 2.20693302154541,
+ 2.7615139484405518,
+ 1.644696593284607,
+ 2.9512035846710205,
+ 1.8079805374145508,
+ 2.170917510986328,
+ 2.944347381591797,
+ 2.9714653491973877,
+ 0.7435740828514099,
+ 2.821129322052002,
+ 2.023958206176758,
+ 2.8142287731170654,
+ 2.1034460067749023,
+ 0.31454887986183167,
+ 2.165646553039551,
+ 1.2360169887542725,
+ 2.4351139068603516,
+ 2.4630208015441895
+ ],
+ "type": "float32"
+ }
+ },
+ {
+ "name": "sqrt float32 4D tensor",
+ "inputs": {
+ "x": {
+ "shape": [2, 2, 2, 3],
+ "data": [
+ 7.256007082508322,
+ 7.786442153556337,
+ 1.3684587069592324,
+ 8.053416211473843,
+ 9.131288551146515,
+ 8.525780428509535,
+ 4.870553385406751,
+ 7.625959393700068,
+ 2.7050268401423483,
+ 8.709602770137977,
+ 3.2687935624375797,
+ 4.712883187439902,
+ 8.669182019771712,
+ 8.82960710328718,
+ 0.5529024533541915,
+ 7.95877117461449,
+ 4.096406313025051,
+ 7.919884221032476,
+ 4.424484759327438,
+ 0.09894099762703057,
+ 4.690024907987658,
+ 1.5277378145575349,
+ 5.929779749165696,
+ 6.06647154134714
+ ],
+ "type": "float32"
+ }
+ },
+ "expected": {
+ "name": "output",
+ "shape": [2, 2, 2, 3],
+ "data": [
+ 2.693697690963745,
+ 2.790419816970825,
+ 1.1698113679885864,
+ 2.8378541469573975,
+ 3.0218021869659424,
+ 2.919893980026245,
+ 2.20693302154541,
+ 2.7615139484405518,
+ 1.644696593284607,
+ 2.9512035846710205,
+ 1.8079805374145508,
+ 2.170917510986328,
+ 2.944347381591797,
+ 2.9714653491973877,
+ 0.7435740828514099,
+ 2.821129322052002,
+ 2.023958206176758,
+ 2.8142287731170654,
+ 2.1034460067749023,
+ 0.31454887986183167,
+ 2.165646553039551,
+ 1.2360169887542725,
+ 2.4351139068603516,
+ 2.4630208015441895
+ ],
+ "type": "float32"
+ }
+ },
+ {
+ "name": "sqrt float32 5D tensor",
+ "inputs": {
+ "x": {
+ "shape": [2, 1, 4, 1, 3],
+ "data": [
+ 7.256007082508322,
+ 7.786442153556337,
+ 1.3684587069592324,
+ 8.053416211473843,
+ 9.131288551146515,
+ 8.525780428509535,
+ 4.870553385406751,
+ 7.625959393700068,
+ 2.7050268401423483,
+ 8.709602770137977,
+ 3.2687935624375797,
+ 4.712883187439902,
+ 8.669182019771712,
+ 8.82960710328718,
+ 0.5529024533541915,
+ 7.95877117461449,
+ 4.096406313025051,
+ 7.919884221032476,
+ 4.424484759327438,
+ 0.09894099762703057,
+ 4.690024907987658,
+ 1.5277378145575349,
+ 5.929779749165696,
+ 6.06647154134714
+ ],
+ "type": "float32"
+ }
+ },
+ "expected": {
+ "name": "output",
+ "shape": [2, 1, 4, 1, 3],
+ "data": [
+ 2.693697690963745,
+ 2.790419816970825,
+ 1.1698113679885864,
+ 2.8378541469573975,
+ 3.0218021869659424,
+ 2.919893980026245,
+ 2.20693302154541,
+ 2.7615139484405518,
+ 1.644696593284607,
+ 2.9512035846710205,
+ 1.8079805374145508,
+ 2.170917510986328,
+ 2.944347381591797,
+ 2.9714653491973877,
+ 0.7435740828514099,
+ 2.821129322052002,
+ 2.023958206176758,
+ 2.8142287731170654,
+ 2.1034460067749023,
+ 0.31454887986183167,
+ 2.165646553039551,
+ 1.2360169887542725,
+ 2.4351139068603516,
+ 2.4630208015441895
+ ],
+ "type": "float32"
+ }
+ }
+ ]
+} \ No newline at end of file