summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/webnn/resources/test_data/average_pool2d.json
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/webnn/resources/test_data/average_pool2d.json')
-rw-r--r--testing/web-platform/tests/webnn/resources/test_data/average_pool2d.json1684
1 files changed, 1684 insertions, 0 deletions
diff --git a/testing/web-platform/tests/webnn/resources/test_data/average_pool2d.json b/testing/web-platform/tests/webnn/resources/test_data/average_pool2d.json
new file mode 100644
index 0000000000..5a9f4e28b1
--- /dev/null
+++ b/testing/web-platform/tests/webnn/resources/test_data/average_pool2d.json
@@ -0,0 +1,1684 @@
+{
+ "tests": [
+ {
+ "name": "averagePool2d float32 4D constant tensor all positive default options",
+ "inputs": {
+ "input": {
+ "shape": [1, 2, 5, 5],
+ "data": [
+ 22.975555502750634,
+ 78.15438048012338,
+ 9.68611138116071,
+ 51.29803808129347,
+ 32.19308601456918,
+ 87.65037289600019,
+ 87.25082191311348,
+ 39.49793996935087,
+ 80.09963591169489,
+ 10.220142557736978,
+ 52.60270021646585,
+ 1.4128639882603933,
+ 11.954064466077474,
+ 85.0007506374375,
+ 64.7837446465813,
+ 88.03128735720126,
+ 11.333851214909307,
+ 70.61659435728073,
+ 84.90442561999888,
+ 79.06688041781518,
+ 7.328724951604215,
+ 35.97796581186121,
+ 10.17730631094398,
+ 1.4140757517112412,
+ 78.10038172113374,
+ 91.59549689157087,
+ 65.64701225681809,
+ 55.14215004436653,
+ 18.432438840756184,
+ 49.34624267439973,
+ 15.648024969290454,
+ 68.02723372727797,
+ 20.342549040418124,
+ 26.72794900604616,
+ 64.87446829774323,
+ 46.56714896227794,
+ 79.57832937136276,
+ 4.338463748959498,
+ 38.18383968382213,
+ 45.253981324455175,
+ 80.9717996657439,
+ 67.58124910163149,
+ 6.026499585657263,
+ 29.77881349289366,
+ 58.58993337807239,
+ 2.2384984647495054,
+ 14.505490166700486,
+ 68.72449589246624,
+ 76.45657404642184,
+ 23.53263275794233
+ ],
+ "type": "float32",
+ "constant": true
+ }
+ },
+ "expected": {
+ "name": "output",
+ "shape": [1, 2, 1, 1],
+ "data": [
+ 47.26926803588867,
+ 44.72445297241211
+ ],
+ "type": "float32"
+ }
+ },
+ {
+ "name": "averagePool2d float32 4D tensor all positive default options",
+ "inputs": {
+ "input": {
+ "shape": [1, 2, 5, 5],
+ "data": [
+ 22.975555502750634,
+ 78.15438048012338,
+ 9.68611138116071,
+ 51.29803808129347,
+ 32.19308601456918,
+ 87.65037289600019,
+ 87.25082191311348,
+ 39.49793996935087,
+ 80.09963591169489,
+ 10.220142557736978,
+ 52.60270021646585,
+ 1.4128639882603933,
+ 11.954064466077474,
+ 85.0007506374375,
+ 64.7837446465813,
+ 88.03128735720126,
+ 11.333851214909307,
+ 70.61659435728073,
+ 84.90442561999888,
+ 79.06688041781518,
+ 7.328724951604215,
+ 35.97796581186121,
+ 10.17730631094398,
+ 1.4140757517112412,
+ 78.10038172113374,
+ 91.59549689157087,
+ 65.64701225681809,
+ 55.14215004436653,
+ 18.432438840756184,
+ 49.34624267439973,
+ 15.648024969290454,
+ 68.02723372727797,
+ 20.342549040418124,
+ 26.72794900604616,
+ 64.87446829774323,
+ 46.56714896227794,
+ 79.57832937136276,
+ 4.338463748959498,
+ 38.18383968382213,
+ 45.253981324455175,
+ 80.9717996657439,
+ 67.58124910163149,
+ 6.026499585657263,
+ 29.77881349289366,
+ 58.58993337807239,
+ 2.2384984647495054,
+ 14.505490166700486,
+ 68.72449589246624,
+ 76.45657404642184,
+ 23.53263275794233
+ ],
+ "type": "float32"
+ }
+ },
+ "expected": {
+ "name": "output",
+ "shape": [1, 2, 1, 1],
+ "data": [
+ 47.26926803588867,
+ 44.72445297241211
+ ],
+ "type": "float32"
+ }
+ },
+ {
+ "name": "averagePool2d float32 4D tensor all negative default options",
+ "inputs": {
+ "input": {
+ "shape": [1, 2, 5, 5],
+ "data": [
+ -83.87757731810672,
+ -2.0740278160840973,
+ -7.561108501687542,
+ -45.27426240728714,
+ -16.366556721916695,
+ -44.90851354569205,
+ -42.041864278576966,
+ -44.77232004469474,
+ -1.5066278585637178,
+ -52.65203675020273,
+ -92.0185617404752,
+ -48.00409189056276,
+ -61.522973144977634,
+ -93.44403784112669,
+ -25.780331283162965,
+ -95.51873647896396,
+ -10.963757774358783,
+ -59.13274884066298,
+ -32.601736114443554,
+ -21.451043477036478,
+ -87.11596404238824,
+ -61.326115814276626,
+ -41.989721754495825,
+ -87.87648787075247,
+ -71.69316094374365,
+ -80.24160387383347,
+ -97.48886243642632,
+ -75.89422421069519,
+ -45.08991580050407,
+ -88.27134747370127,
+ -90.71282719640234,
+ -93.32392100055493,
+ -59.14753161989912,
+ -45.331061517612305,
+ -51.325623691528534,
+ -31.15479613935011,
+ -31.624241001643554,
+ -62.80167996617545,
+ -63.5585108082942,
+ -68.96183132099878,
+ -43.094152045751045,
+ -15.80344395122441,
+ -64.31091886555717,
+ -66.45872774317789,
+ -42.02725165929741,
+ -26.032954597038938,
+ -22.737527779713233,
+ -70.32036541871405,
+ -85.28228199042766,
+ -92.10668232344767
+ ],
+ "type": "float32"
+ }
+ },
+ "expected": {
+ "name": "output",
+ "shape": [1, 2, 1, 1],
+ "data": [
+ -49.258975982666016,
+ -60.52408981323242
+ ],
+ "type": "float32"
+ }
+ },
+ {
+ "name": "averagePool2d float32 4D tensor options.windowDimensions",
+ "inputs": {
+ "input": {
+ "shape": [1, 2, 5, 5],
+ "data": [
+ 22.975555502750634,
+ 78.15438048012338,
+ 9.68611138116071,
+ 51.29803808129347,
+ 32.19308601456918,
+ 87.65037289600019,
+ 87.25082191311348,
+ 39.49793996935087,
+ 80.09963591169489,
+ 10.220142557736978,
+ 52.60270021646585,
+ 1.4128639882603933,
+ 11.954064466077474,
+ 85.0007506374375,
+ 64.7837446465813,
+ 88.03128735720126,
+ 11.333851214909307,
+ 70.61659435728073,
+ 84.90442561999888,
+ 79.06688041781518,
+ 7.328724951604215,
+ 35.97796581186121,
+ 10.17730631094398,
+ 1.4140757517112412,
+ 78.10038172113374,
+ 91.59549689157087,
+ 65.64701225681809,
+ 55.14215004436653,
+ 18.432438840756184,
+ 49.34624267439973,
+ 15.648024969290454,
+ 68.02723372727797,
+ 20.342549040418124,
+ 26.72794900604616,
+ 64.87446829774323,
+ 46.56714896227794,
+ 79.57832937136276,
+ 4.338463748959498,
+ 38.18383968382213,
+ 45.253981324455175,
+ 80.9717996657439,
+ 67.58124910163149,
+ 6.026499585657263,
+ 29.77881349289366,
+ 58.58993337807239,
+ 2.2384984647495054,
+ 14.505490166700486,
+ 68.72449589246624,
+ 76.45657404642184,
+ 23.53263275794233
+ ],
+ "type": "float32"
+ }
+ },
+ "options": {
+ "windowDimensions": [3, 3]
+ },
+ "expected": {
+ "name": "output",
+ "shape": [1, 2, 3, 3],
+ "data": [
+ 43.46498107910156,
+ 49.37273406982422,
+ 42.7481689453125,
+ 50.038944244384766,
+ 52.452327728271484,
+ 58.46046447753906,
+ 32.15948486328125,
+ 34.75465393066406,
+ 54.00202560424805,
+ 49.65404510498047,
+ 41.824440002441406,
+ 35.84912109375,
+ 43.23125457763672,
+ 37.842769622802734,
+ 32.67961120605469,
+ 41.17021942138672,
+ 42.79708480834961,
+ 38.987247467041016
+ ],
+ "type": "float32"
+ }
+ },
+ {
+ "name": "averagePool2d float32 4D tensor options.padding",
+ "inputs": {
+ "input": {
+ "shape": [1, 2, 5, 5],
+ "data": [
+ 22.975555502750634,
+ 78.15438048012338,
+ 9.68611138116071,
+ 51.29803808129347,
+ 32.19308601456918,
+ 87.65037289600019,
+ 87.25082191311348,
+ 39.49793996935087,
+ 80.09963591169489,
+ 10.220142557736978,
+ 52.60270021646585,
+ 1.4128639882603933,
+ 11.954064466077474,
+ 85.0007506374375,
+ 64.7837446465813,
+ 88.03128735720126,
+ 11.333851214909307,
+ 70.61659435728073,
+ 84.90442561999888,
+ 79.06688041781518,
+ 7.328724951604215,
+ 35.97796581186121,
+ 10.17730631094398,
+ 1.4140757517112412,
+ 78.10038172113374,
+ 91.59549689157087,
+ 65.64701225681809,
+ 55.14215004436653,
+ 18.432438840756184,
+ 49.34624267439973,
+ 15.648024969290454,
+ 68.02723372727797,
+ 20.342549040418124,
+ 26.72794900604616,
+ 64.87446829774323,
+ 46.56714896227794,
+ 79.57832937136276,
+ 4.338463748959498,
+ 38.18383968382213,
+ 45.253981324455175,
+ 80.9717996657439,
+ 67.58124910163149,
+ 6.026499585657263,
+ 29.77881349289366,
+ 58.58993337807239,
+ 2.2384984647495054,
+ 14.505490166700486,
+ 68.72449589246624,
+ 76.45657404642184,
+ 23.53263275794233
+ ],
+ "type": "float32"
+ }
+ },
+ "options": {
+ "padding": [1, 0, 0, 1]
+ },
+ "expected": {
+ "name": "output",
+ "shape": [1, 2, 2, 2],
+ "data": [
+ 52.43666076660156,
+ 49.84208297729492,
+ 47.26926803588867,
+ 46.15715408325195,
+ 46.63268280029297,
+ 43.616947174072266,
+ 44.72445297241211,
+ 44.05451583862305
+ ],
+ "type": "float32"
+ }
+ },
+ {
+ "name": "averagePool2d float32 4D tensor options.strides",
+ "inputs": {
+ "input": {
+ "shape": [1, 2, 5, 5],
+ "data": [
+ 22.975555502750634,
+ 78.15438048012338,
+ 9.68611138116071,
+ 51.29803808129347,
+ 32.19308601456918,
+ 87.65037289600019,
+ 87.25082191311348,
+ 39.49793996935087,
+ 80.09963591169489,
+ 10.220142557736978,
+ 52.60270021646585,
+ 1.4128639882603933,
+ 11.954064466077474,
+ 85.0007506374375,
+ 64.7837446465813,
+ 88.03128735720126,
+ 11.333851214909307,
+ 70.61659435728073,
+ 84.90442561999888,
+ 79.06688041781518,
+ 7.328724951604215,
+ 35.97796581186121,
+ 10.17730631094398,
+ 1.4140757517112412,
+ 78.10038172113374,
+ 91.59549689157087,
+ 65.64701225681809,
+ 55.14215004436653,
+ 18.432438840756184,
+ 49.34624267439973,
+ 15.648024969290454,
+ 68.02723372727797,
+ 20.342549040418124,
+ 26.72794900604616,
+ 64.87446829774323,
+ 46.56714896227794,
+ 79.57832937136276,
+ 4.338463748959498,
+ 38.18383968382213,
+ 45.253981324455175,
+ 80.9717996657439,
+ 67.58124910163149,
+ 6.026499585657263,
+ 29.77881349289366,
+ 58.58993337807239,
+ 2.2384984647495054,
+ 14.505490166700486,
+ 68.72449589246624,
+ 76.45657404642184,
+ 23.53263275794233
+ ],
+ "type": "float32"
+ }
+ },
+ "options": {
+ "windowDimensions": [3, 3],
+ "strides": [2, 2]
+ },
+ "expected": {
+ "name": "output",
+ "shape": [1, 2, 2, 2],
+ "data": [
+ 43.46498107910156,
+ 42.7481689453125,
+ 32.15948486328125,
+ 54.00202560424805,
+ 49.65404510498047,
+ 35.84912109375,
+ 41.17021942138672,
+ 38.987247467041016
+ ],
+ "type": "float32"
+ }
+ },
+ {
+ "name": "averagePool2d float32 4D tensor options.dilations",
+ "inputs": {
+ "input": {
+ "shape": [1, 2, 5, 5],
+ "data": [
+ 22.975555502750634,
+ 78.15438048012338,
+ 9.68611138116071,
+ 51.29803808129347,
+ 32.19308601456918,
+ 87.65037289600019,
+ 87.25082191311348,
+ 39.49793996935087,
+ 80.09963591169489,
+ 10.220142557736978,
+ 52.60270021646585,
+ 1.4128639882603933,
+ 11.954064466077474,
+ 85.0007506374375,
+ 64.7837446465813,
+ 88.03128735720126,
+ 11.333851214909307,
+ 70.61659435728073,
+ 84.90442561999888,
+ 79.06688041781518,
+ 7.328724951604215,
+ 35.97796581186121,
+ 10.17730631094398,
+ 1.4140757517112412,
+ 78.10038172113374,
+ 91.59549689157087,
+ 65.64701225681809,
+ 55.14215004436653,
+ 18.432438840756184,
+ 49.34624267439973,
+ 15.648024969290454,
+ 68.02723372727797,
+ 20.342549040418124,
+ 26.72794900604616,
+ 64.87446829774323,
+ 46.56714896227794,
+ 79.57832937136276,
+ 4.338463748959498,
+ 38.18383968382213,
+ 45.253981324455175,
+ 80.9717996657439,
+ 67.58124910163149,
+ 6.026499585657263,
+ 29.77881349289366,
+ 58.58993337807239,
+ 2.2384984647495054,
+ 14.505490166700486,
+ 68.72449589246624,
+ 76.45657404642184,
+ 23.53263275794233
+ ],
+ "type": "float32"
+ }
+ },
+ "options": {
+ "windowDimensions": [3, 3],
+ "dilations": [2, 2]
+ },
+ "expected": {
+ "name": "output",
+ "shape": [1, 2, 1, 1],
+ "data": [
+ 32.2001838684082,
+ 42.971012115478516
+ ],
+ "type": "float32"
+ }
+ },
+ {
+ "name": "averagePool2d float32 4D tensor options.autoPad=explicit",
+ "inputs": {
+ "input": {
+ "shape": [1, 2, 5, 5],
+ "data": [
+ 22.975555502750634,
+ 78.15438048012338,
+ 9.68611138116071,
+ 51.29803808129347,
+ 32.19308601456918,
+ 87.65037289600019,
+ 87.25082191311348,
+ 39.49793996935087,
+ 80.09963591169489,
+ 10.220142557736978,
+ 52.60270021646585,
+ 1.4128639882603933,
+ 11.954064466077474,
+ 85.0007506374375,
+ 64.7837446465813,
+ 88.03128735720126,
+ 11.333851214909307,
+ 70.61659435728073,
+ 84.90442561999888,
+ 79.06688041781518,
+ 7.328724951604215,
+ 35.97796581186121,
+ 10.17730631094398,
+ 1.4140757517112412,
+ 78.10038172113374,
+ 91.59549689157087,
+ 65.64701225681809,
+ 55.14215004436653,
+ 18.432438840756184,
+ 49.34624267439973,
+ 15.648024969290454,
+ 68.02723372727797,
+ 20.342549040418124,
+ 26.72794900604616,
+ 64.87446829774323,
+ 46.56714896227794,
+ 79.57832937136276,
+ 4.338463748959498,
+ 38.18383968382213,
+ 45.253981324455175,
+ 80.9717996657439,
+ 67.58124910163149,
+ 6.026499585657263,
+ 29.77881349289366,
+ 58.58993337807239,
+ 2.2384984647495054,
+ 14.505490166700486,
+ 68.72449589246624,
+ 76.45657404642184,
+ 23.53263275794233
+ ],
+ "type": "float32"
+ }
+ },
+ "options": {
+ "padding": [1, 0, 0, 1],
+ "autoPad": "explicit"
+ },
+ "expected": {
+ "name": "output",
+ "shape": [1, 2, 2, 2],
+ "data": [
+ 52.43666076660156,
+ 49.84208297729492,
+ 47.26926803588867,
+ 46.15715408325195,
+ 46.63268280029297,
+ 43.616947174072266,
+ 44.72445297241211,
+ 44.05451583862305
+ ],
+ "type": "float32"
+ }
+ },
+ {
+ "name": "averagePool2d float32 4D tensor options.autoPad=same-upper",
+ "inputs": {
+ "input": {
+ "shape": [1, 2, 4, 4],
+ "data": [
+ 18.669797402066955,
+ 95.74087629574039,
+ 24.142204556566483,
+ 51.13168108230512,
+ 32.59428648032041,
+ 36.33802591707573,
+ 27.143744148346705,
+ 61.289996123672566,
+ 0.728295383811961,
+ 60.81457168719891,
+ 95.0135160845949,
+ 65.57073366405261,
+ 24.878494968304032,
+ 54.664386232007665,
+ 26.61406921126077,
+ 52.134243150024886,
+ 12.628756510724926,
+ 83.86613668699508,
+ 10.754655927067148,
+ 14.330409913484088,
+ 29.797547470611676,
+ 4.38582170135331,
+ 3.052249580313382,
+ 22.562494369151654,
+ 6.22880691096237,
+ 84.28155043844244,
+ 11.095604502619949,
+ 43.65773966541213,
+ 20.380576521492454,
+ 94.70740415350079,
+ 29.785210365576088,
+ 49.15286022732512
+ ],
+ "type": "float32"
+ }
+ },
+ "options": {
+ "windowDimensions": [3, 3],
+ "strides": [2, 2],
+ "autoPad": "same-upper"
+ },
+ "expected": {
+ "name": "output",
+ "shape": [1, 2, 2, 2],
+ "data": [
+ 43.46503448486328,
+ 54.04864501953125,
+ 43.78555679321289,
+ 59.8331413269043,
+ 27.34345817565918,
+ 17.575525283813477,
+ 41.079856872558594,
+ 33.422855377197266
+ ],
+ "type": "float32"
+ }
+ },
+ {
+ "name": "averagePool2d float32 4D tensor options.autoPad=same-lower",
+ "inputs": {
+ "input": {
+ "shape": [1, 2, 4, 4],
+ "data": [
+ 18.669797402066955,
+ 95.74087629574039,
+ 24.142204556566483,
+ 51.13168108230512,
+ 32.59428648032041,
+ 36.33802591707573,
+ 27.143744148346705,
+ 61.289996123672566,
+ 0.728295383811961,
+ 60.81457168719891,
+ 95.0135160845949,
+ 65.57073366405261,
+ 24.878494968304032,
+ 54.664386232007665,
+ 26.61406921126077,
+ 52.134243150024886,
+ 12.628756510724926,
+ 83.86613668699508,
+ 10.754655927067148,
+ 14.330409913484088,
+ 29.797547470611676,
+ 4.38582170135331,
+ 3.052249580313382,
+ 22.562494369151654,
+ 6.22880691096237,
+ 84.28155043844244,
+ 11.095604502619949,
+ 43.65773966541213,
+ 20.380576521492454,
+ 94.70740415350079,
+ 29.785210365576088,
+ 49.15286022732512
+ ],
+ "type": "float32"
+ }
+ },
+ "options": {
+ "windowDimensions": [3, 3],
+ "strides": [2, 2],
+ "autoPad": "same-lower"
+ },
+ "expected": {
+ "name": "output",
+ "shape": [1, 2, 2, 2],
+ "data": [
+ 45.83574676513672,
+ 49.297752380371094,
+ 35.00300979614258,
+ 53.28703308105469,
+ 32.6695671081543,
+ 23.158628463745117,
+ 39.963619232177734,
+ 38.075660705566406
+ ],
+ "type": "float32"
+ }
+ },
+ {
+ "name": "averagePool2d float32 4D tensor options.autoPad=same-upper ignores options.padding",
+ "inputs": {
+ "input": {
+ "shape": [1, 2, 4, 4],
+ "data": [
+ 18.669797402066955,
+ 95.74087629574039,
+ 24.142204556566483,
+ 51.13168108230512,
+ 32.59428648032041,
+ 36.33802591707573,
+ 27.143744148346705,
+ 61.289996123672566,
+ 0.728295383811961,
+ 60.81457168719891,
+ 95.0135160845949,
+ 65.57073366405261,
+ 24.878494968304032,
+ 54.664386232007665,
+ 26.61406921126077,
+ 52.134243150024886,
+ 12.628756510724926,
+ 83.86613668699508,
+ 10.754655927067148,
+ 14.330409913484088,
+ 29.797547470611676,
+ 4.38582170135331,
+ 3.052249580313382,
+ 22.562494369151654,
+ 6.22880691096237,
+ 84.28155043844244,
+ 11.095604502619949,
+ 43.65773966541213,
+ 20.380576521492454,
+ 94.70740415350079,
+ 29.785210365576088,
+ 49.15286022732512
+ ],
+ "type": "float32"
+ }
+ },
+ "options": {
+ "windowDimensions": [3, 3],
+ "padding": [2, 2, 2, 2],
+ "strides": [2, 2],
+ "autoPad": "same-upper"
+ },
+ "expected": {
+ "name": "output",
+ "shape": [1, 2, 2, 2],
+ "data": [
+ 43.46503448486328,
+ 54.04864501953125,
+ 43.78555679321289,
+ 59.8331413269043,
+ 27.34345817565918,
+ 17.575525283813477,
+ 41.079856872558594,
+ 33.422855377197266
+ ],
+ "type": "float32"
+ }
+ },
+ {
+ "name": "averagePool2d float32 4D tensor options.autoPad=same-lower ignores options.padding",
+ "inputs": {
+ "input": {
+ "shape": [1, 2, 4, 4],
+ "data": [
+ 18.669797402066955,
+ 95.74087629574039,
+ 24.142204556566483,
+ 51.13168108230512,
+ 32.59428648032041,
+ 36.33802591707573,
+ 27.143744148346705,
+ 61.289996123672566,
+ 0.728295383811961,
+ 60.81457168719891,
+ 95.0135160845949,
+ 65.57073366405261,
+ 24.878494968304032,
+ 54.664386232007665,
+ 26.61406921126077,
+ 52.134243150024886,
+ 12.628756510724926,
+ 83.86613668699508,
+ 10.754655927067148,
+ 14.330409913484088,
+ 29.797547470611676,
+ 4.38582170135331,
+ 3.052249580313382,
+ 22.562494369151654,
+ 6.22880691096237,
+ 84.28155043844244,
+ 11.095604502619949,
+ 43.65773966541213,
+ 20.380576521492454,
+ 94.70740415350079,
+ 29.785210365576088,
+ 49.15286022732512
+ ],
+ "type": "float32"
+ }
+ },
+ "options": {
+ "windowDimensions": [3, 3],
+ "padding": [2, 2, 2, 2],
+ "strides": [2, 2],
+ "autoPad": "same-lower"
+ },
+ "expected": {
+ "name": "output",
+ "shape": [1, 2, 2, 2],
+ "data": [
+ 45.83574676513672,
+ 49.297752380371094,
+ 35.00300979614258,
+ 53.28703308105469,
+ 32.6695671081543,
+ 23.158628463745117,
+ 39.963619232177734,
+ 38.075660705566406
+ ],
+ "type": "float32"
+ }
+ },
+ {
+ "name": "averagePool2d float32 4D tensor options.layout=nchw",
+ "inputs": {
+ "input": {
+ "shape": [1, 2, 5, 5],
+ "data": [
+ 22.975555502750634,
+ 78.15438048012338,
+ 9.68611138116071,
+ 51.29803808129347,
+ 32.19308601456918,
+ 87.65037289600019,
+ 87.25082191311348,
+ 39.49793996935087,
+ 80.09963591169489,
+ 10.220142557736978,
+ 52.60270021646585,
+ 1.4128639882603933,
+ 11.954064466077474,
+ 85.0007506374375,
+ 64.7837446465813,
+ 88.03128735720126,
+ 11.333851214909307,
+ 70.61659435728073,
+ 84.90442561999888,
+ 79.06688041781518,
+ 7.328724951604215,
+ 35.97796581186121,
+ 10.17730631094398,
+ 1.4140757517112412,
+ 78.10038172113374,
+ 91.59549689157087,
+ 65.64701225681809,
+ 55.14215004436653,
+ 18.432438840756184,
+ 49.34624267439973,
+ 15.648024969290454,
+ 68.02723372727797,
+ 20.342549040418124,
+ 26.72794900604616,
+ 64.87446829774323,
+ 46.56714896227794,
+ 79.57832937136276,
+ 4.338463748959498,
+ 38.18383968382213,
+ 45.253981324455175,
+ 80.9717996657439,
+ 67.58124910163149,
+ 6.026499585657263,
+ 29.77881349289366,
+ 58.58993337807239,
+ 2.2384984647495054,
+ 14.505490166700486,
+ 68.72449589246624,
+ 76.45657404642184,
+ 23.53263275794233
+ ],
+ "type": "float32"
+ }
+ },
+ "options": {
+ "layout": "nchw"
+ },
+ "expected": {
+ "name": "output",
+ "shape": [1, 2, 1, 1],
+ "data": [
+ 47.26926803588867,
+ 44.72445297241211
+ ],
+ "type": "float32"
+ }
+ },
+ {
+ "name": "averagePool2d float32 4D tensor options.layout=nhwc",
+ "inputs": {
+ "input": {
+ "shape": [1, 5, 5, 2],
+ "data": [
+ 22.975555502750634,
+ 91.59549689157087,
+ 78.15438048012338,
+ 65.64701225681809,
+ 9.68611138116071,
+ 55.14215004436653,
+ 51.29803808129347,
+ 18.432438840756184,
+ 32.19308601456918,
+ 49.34624267439973,
+ 87.65037289600019,
+ 15.648024969290454,
+ 87.25082191311348,
+ 68.02723372727797,
+ 39.49793996935087,
+ 20.342549040418124,
+ 80.09963591169489,
+ 26.72794900604616,
+ 10.220142557736978,
+ 64.87446829774323,
+ 52.60270021646585,
+ 46.56714896227794,
+ 1.4128639882603933,
+ 79.57832937136276,
+ 11.954064466077474,
+ 4.338463748959498,
+ 85.0007506374375,
+ 38.18383968382213,
+ 64.7837446465813,
+ 45.253981324455175,
+ 88.03128735720126,
+ 80.9717996657439,
+ 11.333851214909307,
+ 67.58124910163149,
+ 70.61659435728073,
+ 6.026499585657263,
+ 84.90442561999888,
+ 29.77881349289366,
+ 79.06688041781518,
+ 58.58993337807239,
+ 7.328724951604215,
+ 2.2384984647495054,
+ 35.97796581186121,
+ 14.505490166700486,
+ 10.17730631094398,
+ 68.72449589246624,
+ 1.4140757517112412,
+ 76.45657404642184,
+ 78.10038172113374,
+ 23.53263275794233
+ ],
+ "type": "float32"
+ }
+ },
+ "options": {
+ "layout": "nhwc"
+ },
+ "expected": {
+ "name": "output",
+ "shape": [1, 1, 1, 2],
+ "data": [
+ 47.26926803588867,
+ 44.72445297241211
+ ],
+ "type": "float32"
+ }
+ },
+ {
+ "name": "averagePool2d float32 4D tensor options.roundingType=floor",
+ "inputs": {
+ "input": {
+ "shape": [1, 2, 5, 5],
+ "data": [
+ 22.975555502750634,
+ 78.15438048012338,
+ 9.68611138116071,
+ 51.29803808129347,
+ 32.19308601456918,
+ 87.65037289600019,
+ 87.25082191311348,
+ 39.49793996935087,
+ 80.09963591169489,
+ 10.220142557736978,
+ 52.60270021646585,
+ 1.4128639882603933,
+ 11.954064466077474,
+ 85.0007506374375,
+ 64.7837446465813,
+ 88.03128735720126,
+ 11.333851214909307,
+ 70.61659435728073,
+ 84.90442561999888,
+ 79.06688041781518,
+ 7.328724951604215,
+ 35.97796581186121,
+ 10.17730631094398,
+ 1.4140757517112412,
+ 78.10038172113374,
+ 91.59549689157087,
+ 65.64701225681809,
+ 55.14215004436653,
+ 18.432438840756184,
+ 49.34624267439973,
+ 15.648024969290454,
+ 68.02723372727797,
+ 20.342549040418124,
+ 26.72794900604616,
+ 64.87446829774323,
+ 46.56714896227794,
+ 79.57832937136276,
+ 4.338463748959498,
+ 38.18383968382213,
+ 45.253981324455175,
+ 80.9717996657439,
+ 67.58124910163149,
+ 6.026499585657263,
+ 29.77881349289366,
+ 58.58993337807239,
+ 2.2384984647495054,
+ 14.505490166700486,
+ 68.72449589246624,
+ 76.45657404642184,
+ 23.53263275794233
+ ],
+ "type": "float32"
+ }
+ },
+ "options": {
+ "windowDimensions": [3, 3],
+ "padding": [1, 0, 0, 1],
+ "strides": [2, 2],
+ "roundingType": "floor"
+ },
+ "expected": {
+ "name": "output",
+ "shape": [1, 2, 2, 2],
+ "data": [
+ 54.20252990722656,
+ 37.16582489013672,
+ 50.038944244384766,
+ 58.46046447753906,
+ 52.73374557495117,
+ 39.1442985534668,
+ 43.23125457763672,
+ 32.67961120605469
+ ],
+ "type": "float32"
+ }
+ },
+ {
+ "name": "averagePool2d float32 4D tensor options.roundingType=ceil",
+ "inputs": {
+ "input": {
+ "shape": [1, 2, 5, 5],
+ "data": [
+ 22.975555502750634,
+ 78.15438048012338,
+ 9.68611138116071,
+ 51.29803808129347,
+ 32.19308601456918,
+ 87.65037289600019,
+ 87.25082191311348,
+ 39.49793996935087,
+ 80.09963591169489,
+ 10.220142557736978,
+ 52.60270021646585,
+ 1.4128639882603933,
+ 11.954064466077474,
+ 85.0007506374375,
+ 64.7837446465813,
+ 88.03128735720126,
+ 11.333851214909307,
+ 70.61659435728073,
+ 84.90442561999888,
+ 79.06688041781518,
+ 7.328724951604215,
+ 35.97796581186121,
+ 10.17730631094398,
+ 1.4140757517112412,
+ 78.10038172113374,
+ 91.59549689157087,
+ 65.64701225681809,
+ 55.14215004436653,
+ 18.432438840756184,
+ 49.34624267439973,
+ 15.648024969290454,
+ 68.02723372727797,
+ 20.342549040418124,
+ 26.72794900604616,
+ 64.87446829774323,
+ 46.56714896227794,
+ 79.57832937136276,
+ 4.338463748959498,
+ 38.18383968382213,
+ 45.253981324455175,
+ 80.9717996657439,
+ 67.58124910163149,
+ 6.026499585657263,
+ 29.77881349289366,
+ 58.58993337807239,
+ 2.2384984647495054,
+ 14.505490166700486,
+ 68.72449589246624,
+ 76.45657404642184,
+ 23.53263275794233
+ ],
+ "type": "float32"
+ }
+ },
+ "options": {
+ "windowDimensions": [3, 3],
+ "padding": [1, 0, 0, 1],
+ "strides": [2, 2],
+ "roundingType": "ceil"
+ },
+ "expected": {
+ "name": "output",
+ "shape": [1, 2, 3, 3],
+ "data": [
+ 54.20252990722656,
+ 37.16582489013672,
+ 21.206613540649414,
+ 50.038944244384766,
+ 58.46046447753906,
+ 51.3569221496582,
+ 37.24428939819336,
+ 54.04661178588867,
+ 78.58363342285156,
+ 52.73374557495117,
+ 39.1442985534668,
+ 57.1103515625,
+ 43.23125457763672,
+ 32.67961120605469,
+ 56.23945999145508,
+ 40.00800323486328,
+ 43.85149002075195,
+ 41.061283111572266
+ ],
+ "type": "float32"
+ }
+ },
+ {
+ "name": "averagePool2d float32 4D tensor options.layout=nhwc and options.roundingType=floor",
+ "inputs": {
+ "input": {
+ "shape": [1, 5, 5, 2],
+ "data": [
+ 22.975555502750634,
+ 91.59549689157087,
+ 78.15438048012338,
+ 65.64701225681809,
+ 9.68611138116071,
+ 55.14215004436653,
+ 51.29803808129347,
+ 18.432438840756184,
+ 32.19308601456918,
+ 49.34624267439973,
+ 87.65037289600019,
+ 15.648024969290454,
+ 87.25082191311348,
+ 68.02723372727797,
+ 39.49793996935087,
+ 20.342549040418124,
+ 80.09963591169489,
+ 26.72794900604616,
+ 10.220142557736978,
+ 64.87446829774323,
+ 52.60270021646585,
+ 46.56714896227794,
+ 1.4128639882603933,
+ 79.57832937136276,
+ 11.954064466077474,
+ 4.338463748959498,
+ 85.0007506374375,
+ 38.18383968382213,
+ 64.7837446465813,
+ 45.253981324455175,
+ 88.03128735720126,
+ 80.9717996657439,
+ 11.333851214909307,
+ 67.58124910163149,
+ 70.61659435728073,
+ 6.026499585657263,
+ 84.90442561999888,
+ 29.77881349289366,
+ 79.06688041781518,
+ 58.58993337807239,
+ 7.328724951604215,
+ 2.2384984647495054,
+ 35.97796581186121,
+ 14.505490166700486,
+ 10.17730631094398,
+ 68.72449589246624,
+ 1.4140757517112412,
+ 76.45657404642184,
+ 78.10038172113374,
+ 23.53263275794233
+ ],
+ "type": "float32"
+ }
+ },
+ "options": {
+ "windowDimensions": [3, 3],
+ "padding": [1, 0, 0, 1],
+ "strides": [2, 2],
+ "layout": "nhwc",
+ "roundingType": "floor"
+ },
+ "expected": {
+ "name": "output",
+ "shape": [1, 2, 2, 2],
+ "data": [
+ 54.20252990722656,
+ 52.73374557495117,
+ 37.16582489013672,
+ 39.1442985534668,
+ 50.038944244384766,
+ 43.23125457763672,
+ 58.46046447753906,
+ 32.67961120605469
+ ],
+ "type": "float32"
+ }
+ },
+ {
+ "name": "averagePool2d float32 4D tensor options.layout=nhwc and options.roundingType=ceil",
+ "inputs": {
+ "input": {
+ "shape": [1, 5, 5, 2],
+ "data": [
+ 22.975555502750634,
+ 91.59549689157087,
+ 78.15438048012338,
+ 65.64701225681809,
+ 9.68611138116071,
+ 55.14215004436653,
+ 51.29803808129347,
+ 18.432438840756184,
+ 32.19308601456918,
+ 49.34624267439973,
+ 87.65037289600019,
+ 15.648024969290454,
+ 87.25082191311348,
+ 68.02723372727797,
+ 39.49793996935087,
+ 20.342549040418124,
+ 80.09963591169489,
+ 26.72794900604616,
+ 10.220142557736978,
+ 64.87446829774323,
+ 52.60270021646585,
+ 46.56714896227794,
+ 1.4128639882603933,
+ 79.57832937136276,
+ 11.954064466077474,
+ 4.338463748959498,
+ 85.0007506374375,
+ 38.18383968382213,
+ 64.7837446465813,
+ 45.253981324455175,
+ 88.03128735720126,
+ 80.9717996657439,
+ 11.333851214909307,
+ 67.58124910163149,
+ 70.61659435728073,
+ 6.026499585657263,
+ 84.90442561999888,
+ 29.77881349289366,
+ 79.06688041781518,
+ 58.58993337807239,
+ 7.328724951604215,
+ 2.2384984647495054,
+ 35.97796581186121,
+ 14.505490166700486,
+ 10.17730631094398,
+ 68.72449589246624,
+ 1.4140757517112412,
+ 76.45657404642184,
+ 78.10038172113374,
+ 23.53263275794233
+ ],
+ "type": "float32"
+ }
+ },
+ "options": {
+ "windowDimensions": [3, 3],
+ "padding": [1, 0, 0, 1],
+ "strides": [2, 2],
+ "layout": "nhwc",
+ "roundingType": "ceil"
+ },
+ "expected": {
+ "name": "output",
+ "shape": [1, 3, 3, 2],
+ "data": [
+ 54.20252990722656,
+ 52.73374557495117,
+ 37.16582489013672,
+ 39.1442985534668,
+ 21.206613540649414,
+ 57.1103515625,
+ 50.038944244384766,
+ 43.23125457763672,
+ 58.46046447753906,
+ 32.67961120605469,
+ 51.3569221496582,
+ 56.23945999145508,
+ 37.24428939819336,
+ 40.00800323486328,
+ 54.04661178588867,
+ 43.85149002075195,
+ 78.58363342285156,
+ 41.061283111572266
+ ],
+ "type": "float32"
+ }
+ },
+ {
+ "name": "averagePool2d float32 4D tensor options.outputSizes ignores options.roundingType=floor",
+ "inputs": {
+ "input": {
+ "shape": [1, 2, 5, 5],
+ "data": [
+ 22.975555502750634,
+ 78.15438048012338,
+ 9.68611138116071,
+ 51.29803808129347,
+ 32.19308601456918,
+ 87.65037289600019,
+ 87.25082191311348,
+ 39.49793996935087,
+ 80.09963591169489,
+ 10.220142557736978,
+ 52.60270021646585,
+ 1.4128639882603933,
+ 11.954064466077474,
+ 85.0007506374375,
+ 64.7837446465813,
+ 88.03128735720126,
+ 11.333851214909307,
+ 70.61659435728073,
+ 84.90442561999888,
+ 79.06688041781518,
+ 7.328724951604215,
+ 35.97796581186121,
+ 10.17730631094398,
+ 1.4140757517112412,
+ 78.10038172113374,
+ 91.59549689157087,
+ 65.64701225681809,
+ 55.14215004436653,
+ 18.432438840756184,
+ 49.34624267439973,
+ 15.648024969290454,
+ 68.02723372727797,
+ 20.342549040418124,
+ 26.72794900604616,
+ 64.87446829774323,
+ 46.56714896227794,
+ 79.57832937136276,
+ 4.338463748959498,
+ 38.18383968382213,
+ 45.253981324455175,
+ 80.9717996657439,
+ 67.58124910163149,
+ 6.026499585657263,
+ 29.77881349289366,
+ 58.58993337807239,
+ 2.2384984647495054,
+ 14.505490166700486,
+ 68.72449589246624,
+ 76.45657404642184,
+ 23.53263275794233
+ ],
+ "type": "float32"
+ }
+ },
+ "options": {
+ "windowDimensions": [3, 3],
+ "padding": [1, 0, 0, 1],
+ "strides": [2, 2],
+ "roundingType": "floor",
+ "outputSizes": [3, 3]
+ },
+ "expected": {
+ "name": "output",
+ "shape": [1, 2, 3, 3],
+ "data": [
+ 54.20252990722656,
+ 37.16582489013672,
+ 21.206613540649414,
+ 50.038944244384766,
+ 58.46046447753906,
+ 51.3569221496582,
+ 37.24428939819336,
+ 54.04661178588867,
+ 78.58363342285156,
+ 52.73374557495117,
+ 39.1442985534668,
+ 57.1103515625,
+ 43.23125457763672,
+ 32.67961120605469,
+ 56.23945999145508,
+ 40.00800323486328,
+ 43.85149002075195,
+ 41.061283111572266
+ ],
+ "type": "float32"
+ }
+ },
+ {
+ "name": "averagePool2d float32 4D tensor options.outputSizes ignores options.roundingType=ceil",
+ "inputs": {
+ "input": {
+ "shape": [1, 2, 5, 5],
+ "data": [
+ 22.975555502750634,
+ 78.15438048012338,
+ 9.68611138116071,
+ 51.29803808129347,
+ 32.19308601456918,
+ 87.65037289600019,
+ 87.25082191311348,
+ 39.49793996935087,
+ 80.09963591169489,
+ 10.220142557736978,
+ 52.60270021646585,
+ 1.4128639882603933,
+ 11.954064466077474,
+ 85.0007506374375,
+ 64.7837446465813,
+ 88.03128735720126,
+ 11.333851214909307,
+ 70.61659435728073,
+ 84.90442561999888,
+ 79.06688041781518,
+ 7.328724951604215,
+ 35.97796581186121,
+ 10.17730631094398,
+ 1.4140757517112412,
+ 78.10038172113374,
+ 91.59549689157087,
+ 65.64701225681809,
+ 55.14215004436653,
+ 18.432438840756184,
+ 49.34624267439973,
+ 15.648024969290454,
+ 68.02723372727797,
+ 20.342549040418124,
+ 26.72794900604616,
+ 64.87446829774323,
+ 46.56714896227794,
+ 79.57832937136276,
+ 4.338463748959498,
+ 38.18383968382213,
+ 45.253981324455175,
+ 80.9717996657439,
+ 67.58124910163149,
+ 6.026499585657263,
+ 29.77881349289366,
+ 58.58993337807239,
+ 2.2384984647495054,
+ 14.505490166700486,
+ 68.72449589246624,
+ 76.45657404642184,
+ 23.53263275794233
+ ],
+ "type": "float32"
+ }
+ },
+ "options": {
+ "windowDimensions": [3, 3],
+ "padding": [1, 0, 0, 1],
+ "strides": [2, 2],
+ "roundingType": "ceil",
+ "outputSizes": [2, 2]
+ },
+ "expected": {
+ "name": "output",
+ "shape": [1, 2, 2, 2],
+ "data": [
+ 54.20252990722656,
+ 37.16582489013672,
+ 50.038944244384766,
+ 58.46046447753906,
+ 52.73374557495117,
+ 39.1442985534668,
+ 43.23125457763672,
+ 32.67961120605469
+ ],
+ "type": "float32"
+ }
+ },
+ {
+ "name": "averagePool2d float32 4D tensor options.dilations with options.strides",
+ "inputs": {
+ "input": {
+ "shape": [1, 7, 7, 2],
+ "data": [
+ 70.71148774443492,
+ 99.33489815408664,
+ 76.41767900938127,
+ 39.409808491208075,
+ 38.163289750884786,
+ 45.97125579577395,
+ 65.35275817451954,
+ 64.51607308318059,
+ 7.725966798101558,
+ 41.76720213197029,
+ 94.92633986102845,
+ 53.4757741282748,
+ 95.46460581561715,
+ 58.46179617509972,
+ 15.831390456395834,
+ 78.41020177955981,
+ 24.454091426720414,
+ 20.630917089878963,
+ 32.06352406991017,
+ 47.85192144436541,
+ 91.60813996882193,
+ 72.3534960877585,
+ 74.69429879171796,
+ 28.860215094737086,
+ 71.82395761056222,
+ 7.989691677216348,
+ 88.16659758415284,
+ 58.6985038368079,
+ 63.60618868578896,
+ 55.8818785297152,
+ 52.80997356964097,
+ 72.91473981865086,
+ 46.95766296624579,
+ 22.102796753895348,
+ 87.14309482408858,
+ 89.6496773704621,
+ 63.1961060394868,
+ 11.760882769042901,
+ 70.68730644647478,
+ 57.704439449166166,
+ 1.1838214608898001,
+ 25.26912465963118,
+ 95.29122935012228,
+ 1.9658531197579432,
+ 53.368467017876874,
+ 21.40085377593268,
+ 55.86185685082425,
+ 27.824509095022275,
+ 7.642839647105948,
+ 82.34233289843691,
+ 91.7521616316225,
+ 62.791557264860565,
+ 28.11526123625361,
+ 28.724785838845257,
+ 29.887035626290203,
+ 66.43102984451734,
+ 7.010304526340372,
+ 34.337018989980514,
+ 73.20159661759989,
+ 7.883560316368032,
+ 17.82563551949343,
+ 33.79915704452567,
+ 65.01251297487225,
+ 30.264028793619268,
+ 75.76551637076324,
+ 21.1508003371365,
+ 60.84249522847649,
+ 98.56522463801258,
+ 62.609908350393084,
+ 42.42991434971615,
+ 53.142145502626946,
+ 36.295458325008624,
+ 79.95863074037406,
+ 79.6073479374342,
+ 16.05911470947725,
+ 19.27552016276064,
+ 53.930229800491915,
+ 48.416206270762906,
+ 93.00965219282095,
+ 62.08652309606562,
+ 83.50532824078782,
+ 61.079643266937,
+ 75.51439445416229,
+ 54.19378092928726,
+ 2.5728738625729886,
+ 59.476519581318875,
+ 34.22541363563057,
+ 13.070153382932116,
+ 12.419061788136698,
+ 55.82337008512126,
+ 4.55381397818555,
+ 63.4783048068831,
+ 62.35559240600399,
+ 56.96109146563499,
+ 34.770159024929015,
+ 0.9611224125308793,
+ 35.306870987826144,
+ 98.0079011498779
+ ],
+ "type": "float32"
+ }
+ },
+ "options": {
+ "windowDimensions": [3, 3],
+ "padding": [1, 0, 0, 1],
+ "autoPad": "explicit",
+ "strides": [2, 2],
+ "layout": "nhwc"
+ },
+ "expected": {
+ "name": "output",
+ "shape": [1, 3, 3, 2],
+ "data": [
+ 42.940242767333984,
+ 55.268165588378906,
+ 51.6013298034668,
+ 50.220027923583984,
+ 72.13362884521484,
+ 41.542198181152344,
+ 48.91604232788086,
+ 38.775962829589844,
+ 61.21329879760742,
+ 49.504154205322266,
+ 57.72294998168945,
+ 38.6922492980957,
+ 50.19099807739258,
+ 29.15436363220215,
+ 52.98439025878906,
+ 43.10562515258789,
+ 66.77796936035156,
+ 55.2725830078125
+ ],
+ "type": "float32"
+ }
+ }
+ ]
+} \ No newline at end of file