{ "tests": [ { "name": "conv2d float32 4D input and filter(non-constant) tensors default options", "inputs": { "input": { "shape": [1, 1, 5, 5], "data": [ 0.6124474607869732, 0.8857858599952035, 0.13667134799354397, 0.564529098909835, 0.8965171985225997, 0.36792828664768873, 0.6811466319147079, 0.04795110047019757, 0.33355462154327986, 0.19882695924603588, 0.4116714070095846, 0.07934240242135737, 0.42724633975875426, 0.5358005687699703, 0.5910805999797129, 0.2841543363273238, 0.414725865128835, 0.026906268886554896, 0.3621256577250671, 0.9945681862504354, 0.07184549434969778, 0.1220437231354885, 0.8422137325421886, 0.4537501021068471, 0.2152944303497728 ], "type": "float32" }, "filter": { "shape": [1, 1, 3, 3], "data": [ 0.3804761331189006, 0.5280312082437455, 0.2194703660873738, 0.3668976886827289, 0.33974137307686836, 0.42000596251782674, 0.38050310131155185, 0.19443586243810795, 0.5686976617292392 ], "type": "float32" } }, "expected": { "name": "output", "shape": [1, 1, 3, 3], "data": [ 1.5323282480239868, 1.3573521375656128, 1.3641656637191772, 1.071682333946228, 1.1259644031524658, 1.4713115692138672, 1.078782320022583, 1.155018925666809, 1.656954288482666 ], "type": "float32" } }, { "name": "conv2d float32 4D both input and filter constant tensors default options", "inputs": { "input": { "shape": [1, 1, 5, 5], "data": [ 0.6124474607869732, 0.8857858599952035, 0.13667134799354397, 0.564529098909835, 0.8965171985225997, 0.36792828664768873, 0.6811466319147079, 0.04795110047019757, 0.33355462154327986, 0.19882695924603588, 0.4116714070095846, 0.07934240242135737, 0.42724633975875426, 0.5358005687699703, 0.5910805999797129, 0.2841543363273238, 0.414725865128835, 0.026906268886554896, 0.3621256577250671, 0.9945681862504354, 0.07184549434969778, 0.1220437231354885, 0.8422137325421886, 0.4537501021068471, 0.2152944303497728 ], "type": "float32", "constant": true }, "filter": { "shape": [1, 1, 3, 3], "data": [ 0.3804761331189006, 0.5280312082437455, 0.2194703660873738, 0.3668976886827289, 0.33974137307686836, 0.42000596251782674, 0.38050310131155185, 0.19443586243810795, 0.5686976617292392 ], "type": "float32", "constant": true } }, "expected": { "name": "output", "shape": [1, 1, 3, 3], "data": [ 1.5323282480239868, 1.3573521375656128, 1.3641656637191772, 1.071682333946228, 1.1259644031524658, 1.4713115692138672, 1.078782320022583, 1.155018925666809, 1.656954288482666 ], "type": "float32" } }, { "name": "conv2d float32 4D input and filter tensors default options", "inputs": { "input": { "shape": [1, 1, 5, 5], "data": [ 0.6124474607869732, 0.8857858599952035, 0.13667134799354397, 0.564529098909835, 0.8965171985225997, 0.36792828664768873, 0.6811466319147079, 0.04795110047019757, 0.33355462154327986, 0.19882695924603588, 0.4116714070095846, 0.07934240242135737, 0.42724633975875426, 0.5358005687699703, 0.5910805999797129, 0.2841543363273238, 0.414725865128835, 0.026906268886554896, 0.3621256577250671, 0.9945681862504354, 0.07184549434969778, 0.1220437231354885, 0.8422137325421886, 0.4537501021068471, 0.2152944303497728 ], "type": "float32" }, "filter": { "shape": [1, 1, 3, 3], "data": [ 0.3804761331189006, 0.5280312082437455, 0.2194703660873738, 0.3668976886827289, 0.33974137307686836, 0.42000596251782674, 0.38050310131155185, 0.19443586243810795, 0.5686976617292392 ], "type": "float32", "constant": true } }, "expected": { "name": "output", "shape": [1, 1, 3, 3], "data": [ 1.5323282480239868, 1.3573521375656128, 1.3641656637191772, 1.071682333946228, 1.1259644031524658, 1.4713115692138672, 1.078782320022583, 1.155018925666809, 1.656954288482666 ], "type": "float32" } }, { "name": "conv2d float32 4D input and filter tensors options.padding", "inputs": { "input": { "shape": [1, 1, 5, 5], "data": [ 0.6124474607869732, 0.8857858599952035, 0.13667134799354397, 0.564529098909835, 0.8965171985225997, 0.36792828664768873, 0.6811466319147079, 0.04795110047019757, 0.33355462154327986, 0.19882695924603588, 0.4116714070095846, 0.07934240242135737, 0.42724633975875426, 0.5358005687699703, 0.5910805999797129, 0.2841543363273238, 0.414725865128835, 0.026906268886554896, 0.3621256577250671, 0.9945681862504354, 0.07184549434969778, 0.1220437231354885, 0.8422137325421886, 0.4537501021068471, 0.2152944303497728 ], "type": "float32" }, "filter": { "shape": [1, 1, 3, 3], "data": [ 0.3804761331189006, 0.5280312082437455, 0.2194703660873738, 0.3668976886827289, 0.33974137307686836, 0.42000596251782674, 0.38050310131155185, 0.19443586243810795, 0.5686976617292392 ], "type": "float32", "constant": true } }, "options": { "padding": [1, 1, 1, 1] }, "expected": { "name": "output", "shape": [1, 1, 5, 5], "data": [ 1.0390141010284424, 0.882753312587738, 1.0667248964309692, 0.8146538734436035, 0.6772860884666443, 1.0540467500686646, 1.5323282480239868, 1.3573521375656128, 1.3641656637191772, 1.1969101428985596, 0.8080586791038513, 1.071682333946228, 1.1259644031524658, 1.4713115692138672, 0.960464596748352, 0.5888903141021729, 1.078782320022583, 1.155018925666809, 1.656954288482666, 1.2012416124343872, 0.3167303800582886, 0.7545653581619263, 0.7729666829109192, 0.9733180403709412, 0.9025675058364868 ], "type": "float32" } }, { "name": "conv2d float32 4D input and filter tensors options.strides", "inputs": { "input": { "shape": [1, 1, 5, 5], "data": [ 0.6124474607869732, 0.8857858599952035, 0.13667134799354397, 0.564529098909835, 0.8965171985225997, 0.36792828664768873, 0.6811466319147079, 0.04795110047019757, 0.33355462154327986, 0.19882695924603588, 0.4116714070095846, 0.07934240242135737, 0.42724633975875426, 0.5358005687699703, 0.5910805999797129, 0.2841543363273238, 0.414725865128835, 0.026906268886554896, 0.3621256577250671, 0.9945681862504354, 0.07184549434969778, 0.1220437231354885, 0.8422137325421886, 0.4537501021068471, 0.2152944303497728 ], "type": "float32" }, "filter": { "shape": [1, 1, 3, 3], "data": [ 0.3804761331189006, 0.5280312082437455, 0.2194703660873738, 0.3668976886827289, 0.33974137307686836, 0.42000596251782674, 0.38050310131155185, 0.19443586243810795, 0.5686976617292392 ], "type": "float32", "constant": true } }, "options": { "strides": [2, 2] }, "expected": { "name": "output", "shape": [1, 1, 2, 2], "data": [ 1.5323282480239868, 1.3641656637191772, 1.078782320022583, 1.656954288482666 ], "type": "float32" } }, { "name": "conv2d float32 4D input and filter tensors options.dilations", "inputs": { "input": { "shape": [1, 1, 5, 5], "data": [ 0.6124474607869732, 0.8857858599952035, 0.13667134799354397, 0.564529098909835, 0.8965171985225997, 0.36792828664768873, 0.6811466319147079, 0.04795110047019757, 0.33355462154327986, 0.19882695924603588, 0.4116714070095846, 0.07934240242135737, 0.42724633975875426, 0.5358005687699703, 0.5910805999797129, 0.2841543363273238, 0.414725865128835, 0.026906268886554896, 0.3621256577250671, 0.9945681862504354, 0.07184549434969778, 0.1220437231354885, 0.8422137325421886, 0.4537501021068471, 0.2152944303497728 ], "type": "float32" }, "filter": { "shape": [1, 1, 3, 3], "data": [ 0.3804761331189006, 0.5280312082437455, 0.2194703660873738, 0.3668976886827289, 0.33974137307686836, 0.42000596251782674, 0.38050310131155185, 0.19443586243810795, 0.5686976617292392 ], "type": "float32", "constant": true } }, "options": { "dilations": [2, 2] }, "expected": { "name": "output", "shape": [1, 1, 1, 1], "data": [ 1.3599307537078857 ], "type": "float32" } }, { "name": "conv2d float32 4D input and filter tensors options.padding and options.autoPad='explicit'", "inputs": { "input": { "shape": [1, 1, 5, 5], "data": [ 0.6124474607869732, 0.8857858599952035, 0.13667134799354397, 0.564529098909835, 0.8965171985225997, 0.36792828664768873, 0.6811466319147079, 0.04795110047019757, 0.33355462154327986, 0.19882695924603588, 0.4116714070095846, 0.07934240242135737, 0.42724633975875426, 0.5358005687699703, 0.5910805999797129, 0.2841543363273238, 0.414725865128835, 0.026906268886554896, 0.3621256577250671, 0.9945681862504354, 0.07184549434969778, 0.1220437231354885, 0.8422137325421886, 0.4537501021068471, 0.2152944303497728 ], "type": "float32" }, "filter": { "shape": [1, 1, 3, 3], "data": [ 0.3804761331189006, 0.5280312082437455, 0.2194703660873738, 0.3668976886827289, 0.33974137307686836, 0.42000596251782674, 0.38050310131155185, 0.19443586243810795, 0.5686976617292392 ], "type": "float32", "constant": true } }, "options": { "padding": [1, 1, 1, 1], "autoPad": "explicit" }, "expected": { "name": "output", "shape": [1, 1, 5, 5], "data": [ 1.0390141010284424, 0.882753312587738, 1.0667248964309692, 0.8146538734436035, 0.6772860884666443, 1.0540467500686646, 1.5323282480239868, 1.3573521375656128, 1.3641656637191772, 1.1969101428985596, 0.8080586791038513, 1.071682333946228, 1.1259644031524658, 1.4713115692138672, 0.960464596748352, 0.5888903141021729, 1.078782320022583, 1.155018925666809, 1.656954288482666, 1.2012416124343872, 0.3167303800582886, 0.7545653581619263, 0.7729666829109192, 0.9733180403709412, 0.9025675058364868 ], "type": "float32" } }, { "name": "conv2d float32 4D input and filter tensors options.autoPad='same-upper'", "inputs": { "input": { "shape": [1, 1, 4, 4], "data": [ 0.9371488026117993, 0.4742464662522563, 0.6571340852996714, 0.8399660616881559, 0.3286228380482863, 0.09911389391233816, 0.008774675079729732, 0.49592297038960576, 0.6906991955372042, 0.40363236211387643, 0.08385655421112803, 0.7818648489403492, 0.7862677667715321, 0.8178903833064657, 0.9872956148300345, 0.1289262831549154 ], "type": "float32" }, "filter": { "shape": [1, 1, 3, 3], "data": [ 0.3804761331189006, 0.5280312082437455, 0.2194703660873738, 0.3668976886827289, 0.33974137307686836, 0.42000596251782674, 0.38050310131155185, 0.19443586243810795, 0.5686976617292392 ], "type": "float32", "constant": true } }, "options": { "strides": [2, 2], "autoPad": "same-upper" }, "expected": { "name": "output", "shape": [1, 1, 2, 2], "data": [ 1.298113465309143, 1.0491873025894165, 1.475350260734558, 0.8507925271987915 ], "type": "float32" } }, { "name": "conv2d float32 4D input and filter tensors options.autoPad='same-upper' ignores options.padding", "inputs": { "input": { "shape": [1, 1, 4, 4], "data": [ 0.9371488026117993, 0.4742464662522563, 0.6571340852996714, 0.8399660616881559, 0.3286228380482863, 0.09911389391233816, 0.008774675079729732, 0.49592297038960576, 0.6906991955372042, 0.40363236211387643, 0.08385655421112803, 0.7818648489403492, 0.7862677667715321, 0.8178903833064657, 0.9872956148300345, 0.1289262831549154 ], "type": "float32" }, "filter": { "shape": [1, 1, 3, 3], "data": [ 0.3804761331189006, 0.5280312082437455, 0.2194703660873738, 0.3668976886827289, 0.33974137307686836, 0.42000596251782674, 0.38050310131155185, 0.19443586243810795, 0.5686976617292392 ], "type": "float32", "constant": true } }, "options": { "padding": [1, 2, 1, 2], "strides": [2, 2], "autoPad": "same-upper" }, "expected": { "name": "output", "shape": [1, 1, 2, 2], "data": [ 1.298113465309143, 1.0491873025894165, 1.475350260734558, 0.8507925271987915 ], "type": "float32" } }, { "name": "conv2d float32 4D input and filter tensors options.autoPad='same-lower'", "inputs": { "input": { "shape": [1, 1, 5, 5], "data": [ 0.6124474607869732, 0.8857858599952035, 0.13667134799354397, 0.564529098909835, 0.8965171985225997, 0.36792828664768873, 0.6811466319147079, 0.04795110047019757, 0.33355462154327986, 0.19882695924603588, 0.4116714070095846, 0.07934240242135737, 0.42724633975875426, 0.5358005687699703, 0.5910805999797129, 0.2841543363273238, 0.414725865128835, 0.026906268886554896, 0.3621256577250671, 0.9945681862504354, 0.07184549434969778, 0.1220437231354885, 0.8422137325421886, 0.4537501021068471, 0.2152944303497728 ], "type": "float32" }, "filter": { "shape": [1, 1, 3, 3], "data": [ 0.3804761331189006, 0.5280312082437455, 0.2194703660873738, 0.3668976886827289, 0.33974137307686836, 0.42000596251782674, 0.38050310131155185, 0.19443586243810795, 0.5686976617292392 ], "type": "float32", "constant": true } }, "options": { "strides": [2, 2], "autoPad": "same-lower" }, "expected": { "name": "output", "shape": [1, 1, 3, 3], "data": [ 1.0390141010284424, 1.0667248964309692, 0.6772860884666443, 0.8080586791038513, 1.1259644031524658, 0.960464596748352, 0.3167303800582886, 0.7729666829109192, 0.9025675058364868 ], "type": "float32" } }, { "name": "conv2d float32 4D input and filter tensors options.autoPad='same-lower' ignores options.padding", "inputs": { "input": { "shape": [1, 1, 5, 5], "data": [ 0.6124474607869732, 0.8857858599952035, 0.13667134799354397, 0.564529098909835, 0.8965171985225997, 0.36792828664768873, 0.6811466319147079, 0.04795110047019757, 0.33355462154327986, 0.19882695924603588, 0.4116714070095846, 0.07934240242135737, 0.42724633975875426, 0.5358005687699703, 0.5910805999797129, 0.2841543363273238, 0.414725865128835, 0.026906268886554896, 0.3621256577250671, 0.9945681862504354, 0.07184549434969778, 0.1220437231354885, 0.8422137325421886, 0.4537501021068471, 0.2152944303497728 ], "type": "float32" }, "filter": { "shape": [1, 1, 3, 3], "data": [ 0.3804761331189006, 0.5280312082437455, 0.2194703660873738, 0.3668976886827289, 0.33974137307686836, 0.42000596251782674, 0.38050310131155185, 0.19443586243810795, 0.5686976617292392 ], "type": "float32", "constant": true } }, "options": { "padding": [1, 2, 1, 2], "strides": [2, 2], "autoPad": "same-lower" }, "expected": { "name": "output", "shape": [1, 1, 3, 3], "data": [ 1.0390141010284424, 1.0667248964309692, 0.6772860884666443, 0.8080586791038513, 1.1259644031524658, 0.960464596748352, 0.3167303800582886, 0.7729666829109192, 0.9025675058364868 ], "type": "float32" } }, { "name": "depthwise conv2d float32 4D input and filter tensors options.groups= input_channels", "inputs": { "input": { "shape": [1, 4, 2, 2], "data": [ 0.8444867694647586, 0.9432409670525521, 0.6556113430383732, 0.6982811560969739, 0.9994443556337815, 0.23663609547122832, 0.36740679911148977, 0.26192464008498995, 0.6254158900563778, 0.8403864149984126, 0.3783077112751454, 0.4543924050667707, 0.2532720958655783, 0.5780375783781451, 0.5414554298341647, 0.3784630864473655 ], "type": "float32" }, "filter": { "shape": [4, 1, 2, 2], "data": [ 0.2722161634913378, 0.2812024814519549, 0.8544839438625549, 0.17969306710350352, 0.7762278551409514, 0.5140685342176547, 0.6374202845672399, 0.12801742574418573, 0.8373775881302137, 0.5726001728584655, 0.0985520323467497, 0.5929879082269991, 0.5900803925387657, 0.9690897431424881, 0.2317559033646952, 0.1480511343463049 ], "type": "float32", "constant": true } }, "options": { "groups": 4 }, "expected": { "name": "output", "shape": [1, 4, 1, 1], "data": [ 1.1808103322982788, 1.165167212486267, 1.311646819114685, 0.8911385536193848 ], "type": "float32" } }, { "name": "conv2d float32 4D input and filter tensors options.inputLayout='nchw'", "inputs": { "input": { "shape": [2, 1, 3, 3], "data": [ 0.7529087201709872, 0.7520291960017611, 0.594952773514815, 0.21631854011984264, 0.07589348976741683, 0.15106785419828572, 0.12124850358598671, 0.5364335407319905, 0.5937089927693522, 0.9910031422560608, 0.36309423611370084, 0.9289673923363004, 0.22727376737331384, 0.5414123970044269, 0.0844534212564596, 0.6765284772046276, 0.619325655574763, 0.39292160755260475 ], "type": "float32" }, "filter": { "shape": [3, 1, 2, 2], "data": [ 0.14543837927656278, 0.9671129790291346, 0.10836050336762582, 0.320230810822804, 0.6952692250382182, 0.5070913293589028, 0.0813970738017622, 0.5303338853508432, 0.30721364807734, 0.4324123448833208, 0.9849002194630809, 0.4281076188358701 ], "type": "float32", "constant": true } }, "options": { "inputLayout": "nchw" }, "expected": { "name": "output", "shape": [2, 3, 2, 2], "data": [ 0.8845428228378296, 0.7413608431816101, 0.2897796928882599, 0.4053896367549896, 0.9626783132553101, 0.9108520746231079, 0.4832426905632019, 0.4878997206687927, 0.8020333051681519, 0.6277193427085876, 0.4483422338962555, 0.8711439371109009, 0.6932874917984009, 1.0369365215301514, 0.8282973766326904, 0.35335418581962585, 1.1787647008895874, 0.8123774528503418, 0.816078782081604, 0.6780439019203186, 0.9170808792114258, 1.082636833190918, 1.2353861331939697, 0.9810346961021423 ], "type": "float32" } }, { "name": "conv2d float32 4D input and filter tensors options.inputLayout='nhwc'", "inputs": { "input": { "shape": [2, 3, 3, 1], "data": [ 0.7529087201709872, 0.7520291960017611, 0.594952773514815, 0.21631854011984264, 0.07589348976741683, 0.15106785419828572, 0.12124850358598671, 0.5364335407319905, 0.5937089927693522, 0.9910031422560608, 0.36309423611370084, 0.9289673923363004, 0.22727376737331384, 0.5414123970044269, 0.0844534212564596, 0.6765284772046276, 0.619325655574763, 0.39292160755260475 ], "type": "float32" }, "filter": { "shape": [3, 1, 2, 2], "data": [ 0.14543837927656278, 0.9671129790291346, 0.10836050336762582, 0.320230810822804, 0.6952692250382182, 0.5070913293589028, 0.0813970738017622, 0.5303338853508432, 0.30721364807734, 0.4324123448833208, 0.9849002194630809, 0.4281076188358701 ], "type": "float32", "constant": true } }, "options": { "inputLayout": "nhwc" }, "expected": { "name": "output", "shape": [2, 2, 2, 3], "data": [ 0.8845428228378296, 0.9626783132553101, 0.8020333051681519, 0.7413608431816101, 0.9108520746231079, 0.6277193427085876, 0.2897796928882599, 0.4832426905632019, 0.4483422338962555, 0.4053896367549896, 0.4878997206687927, 0.8711439371109009, 0.6932874917984009, 1.1787647008895874, 0.9170808792114258, 1.0369365215301514, 0.8123774528503418, 1.082636833190918, 0.8282973766326904, 0.816078782081604, 1.2353861331939697, 0.35335418581962585, 0.6780439019203186, 0.9810346961021423 ], "type": "float32" } }, { "name": "conv2d float32 4D input and filter tensors options.filterLayout='oihw'", "inputs": { "input": { "shape": [2, 1, 3, 3], "data": [ 0.7529087201709872, 0.7520291960017611, 0.594952773514815, 0.21631854011984264, 0.07589348976741683, 0.15106785419828572, 0.12124850358598671, 0.5364335407319905, 0.5937089927693522, 0.9910031422560608, 0.36309423611370084, 0.9289673923363004, 0.22727376737331384, 0.5414123970044269, 0.0844534212564596, 0.6765284772046276, 0.619325655574763, 0.39292160755260475 ], "type": "float32" }, "filter": { "shape": [3, 1, 2, 2], "data": [ 0.14543837927656278, 0.9671129790291346, 0.10836050336762582, 0.320230810822804, 0.6952692250382182, 0.5070913293589028, 0.0813970738017622, 0.5303338853508432, 0.30721364807734, 0.4324123448833208, 0.9849002194630809, 0.4281076188358701 ], "type": "float32", "constant": true } }, "options": { "filterLayout": "oihw" }, "expected": { "name": "output", "shape": [2, 3, 2, 2], "data": [ 0.8845428228378296, 0.7413608431816101, 0.2897796928882599, 0.4053896367549896, 0.9626783132553101, 0.9108520746231079, 0.4832426905632019, 0.4878997206687927, 0.8020333051681519, 0.6277193427085876, 0.4483422338962555, 0.8711439371109009, 0.6932874917984009, 1.0369365215301514, 0.8282973766326904, 0.35335418581962585, 1.1787647008895874, 0.8123774528503418, 0.816078782081604, 0.6780439019203186, 0.9170808792114258, 1.082636833190918, 1.2353861331939697, 0.9810346961021423 ], "type": "float32" } }, { "name": "conv2d float32 4D input and filter tensors options.filterLayout='hwio'", "inputs": { "input": { "shape": [2, 1, 3, 3], "data": [ 0.7529087201709872, 0.7520291960017611, 0.594952773514815, 0.21631854011984264, 0.07589348976741683, 0.15106785419828572, 0.12124850358598671, 0.5364335407319905, 0.5937089927693522, 0.9910031422560608, 0.36309423611370084, 0.9289673923363004, 0.22727376737331384, 0.5414123970044269, 0.0844534212564596, 0.6765284772046276, 0.619325655574763, 0.39292160755260475 ], "type": "float32" }, "filter": { "shape": [2, 2, 1, 3], "data": [ 0.14543837927656278, 0.6952692250382182, 0.30721364807734, 0.9671129790291346, 0.5070913293589028, 0.4324123448833208, 0.10836050336762582, 0.0813970738017622, 0.9849002194630809, 0.320230810822804, 0.5303338853508432, 0.4281076188358701 ], "type": "float32", "constant": true } }, "options": { "filterLayout": "hwio" }, "expected": { "name": "output", "shape": [2, 3, 2, 2], "data": [ 0.8845428228378296, 0.7413608431816101, 0.2897796928882599, 0.4053896367549896, 0.9626783132553101, 0.9108520746231079, 0.4832426905632019, 0.4878997206687927, 0.8020333051681519, 0.6277193427085876, 0.4483422338962555, 0.8711439371109009, 0.6932874917984009, 1.0369365215301514, 0.8282973766326904, 0.35335418581962585, 1.1787647008895874, 0.8123774528503418, 0.816078782081604, 0.6780439019203186, 0.9170808792114258, 1.082636833190918, 1.2353861331939697, 0.9810346961021423 ], "type": "float32" } }, { "name": "conv2d float32 4D input and filter tensors options.filterLayout='ohwi'", "inputs": { "input": { "shape": [2, 1, 3, 3], "data": [ 0.7529087201709872, 0.7520291960017611, 0.594952773514815, 0.21631854011984264, 0.07589348976741683, 0.15106785419828572, 0.12124850358598671, 0.5364335407319905, 0.5937089927693522, 0.9910031422560608, 0.36309423611370084, 0.9289673923363004, 0.22727376737331384, 0.5414123970044269, 0.0844534212564596, 0.6765284772046276, 0.619325655574763, 0.39292160755260475 ], "type": "float32" }, "filter": { "shape": [3, 2, 2, 1], "data": [ 0.14543837927656278, 0.9671129790291346, 0.10836050336762582, 0.320230810822804, 0.6952692250382182, 0.5070913293589028, 0.0813970738017622, 0.5303338853508432, 0.30721364807734, 0.4324123448833208, 0.9849002194630809, 0.4281076188358701 ], "type": "float32", "constant": true } }, "options": { "filterLayout": "ohwi" }, "expected": { "name": "output", "shape": [2, 3, 2, 2], "data": [ 0.8845428228378296, 0.7413608431816101, 0.2897796928882599, 0.4053896367549896, 0.9626783132553101, 0.9108520746231079, 0.4832426905632019, 0.4878997206687927, 0.8020333051681519, 0.6277193427085876, 0.4483422338962555, 0.8711439371109009, 0.6932874917984009, 1.0369365215301514, 0.8282973766326904, 0.35335418581962585, 1.1787647008895874, 0.8123774528503418, 0.816078782081604, 0.6780439019203186, 0.9170808792114258, 1.082636833190918, 1.2353861331939697, 0.9810346961021423 ], "type": "float32" } }, { "name": "conv2d float32 4D input and filter tensors options.filterLayout='ihwo'", "inputs": { "input": { "shape": [2, 1, 3, 3], "data": [ 0.7529087201709872, 0.7520291960017611, 0.594952773514815, 0.21631854011984264, 0.07589348976741683, 0.15106785419828572, 0.12124850358598671, 0.5364335407319905, 0.5937089927693522, 0.9910031422560608, 0.36309423611370084, 0.9289673923363004, 0.22727376737331384, 0.5414123970044269, 0.0844534212564596, 0.6765284772046276, 0.619325655574763, 0.39292160755260475 ], "type": "float32" }, "filter": { "shape": [1, 2, 2, 3], "data": [ 0.14543837927656278, 0.6952692250382182, 0.30721364807734, 0.9671129790291346, 0.5070913293589028, 0.4324123448833208, 0.10836050336762582, 0.0813970738017622, 0.9849002194630809, 0.320230810822804, 0.5303338853508432, 0.4281076188358701 ], "type": "float32", "constant": true } }, "options": { "filterLayout": "ihwo" }, "expected": { "name": "output", "shape": [2, 3, 2, 2], "data": [ 0.8845428228378296, 0.7413608431816101, 0.2897796928882599, 0.4053896367549896, 0.9626783132553101, 0.9108520746231079, 0.4832426905632019, 0.4878997206687927, 0.8020333051681519, 0.6277193427085876, 0.4483422338962555, 0.8711439371109009, 0.6932874917984009, 1.0369365215301514, 0.8282973766326904, 0.35335418581962585, 1.1787647008895874, 0.8123774528503418, 0.816078782081604, 0.6780439019203186, 0.9170808792114258, 1.082636833190918, 1.2353861331939697, 0.9810346961021423 ], "type": "float32" } }, { "name": "conv2d float32 4D input and filter tensors options.inputLayout='nhwc' and options.filterLayout='oihw'", "inputs": { "input": { "shape": [2, 3, 3, 1], "data": [ 0.7529087201709872, 0.7520291960017611, 0.594952773514815, 0.21631854011984264, 0.07589348976741683, 0.15106785419828572, 0.12124850358598671, 0.5364335407319905, 0.5937089927693522, 0.9910031422560608, 0.36309423611370084, 0.9289673923363004, 0.22727376737331384, 0.5414123970044269, 0.0844534212564596, 0.6765284772046276, 0.619325655574763, 0.39292160755260475 ], "type": "float32" }, "filter": { "shape": [3, 1, 2, 2], "data": [ 0.14543837927656278, 0.9671129790291346, 0.10836050336762582, 0.320230810822804, 0.6952692250382182, 0.5070913293589028, 0.0813970738017622, 0.5303338853508432, 0.30721364807734, 0.4324123448833208, 0.9849002194630809, 0.4281076188358701 ], "type": "float32", "constant": true } }, "options": { "inputLayout": "nhwc", "filterLayout": "oihw" }, "expected": { "name": "output", "shape": [2, 2, 2, 3], "data": [ 0.8845428228378296, 0.9626783132553101, 0.8020333051681519, 0.7413608431816101, 0.9108520746231079, 0.6277193427085876, 0.2897796928882599, 0.4832426905632019, 0.4483422338962555, 0.4053896367549896, 0.4878997206687927, 0.8711439371109009, 0.6932874917984009, 1.1787647008895874, 0.9170808792114258, 1.0369365215301514, 0.8123774528503418, 1.082636833190918, 0.8282973766326904, 0.816078782081604, 1.2353861331939697, 0.35335418581962585, 0.6780439019203186, 0.9810346961021423 ], "type": "float32" } }, { "name": "conv2d float32 4D input and filter tensors options.inputLayout='nhwc' and options.filterLayout='hwio'", "inputs": { "input": { "shape": [2, 3, 3, 1], "data": [ 0.7529087201709872, 0.7520291960017611, 0.594952773514815, 0.21631854011984264, 0.07589348976741683, 0.15106785419828572, 0.12124850358598671, 0.5364335407319905, 0.5937089927693522, 0.9910031422560608, 0.36309423611370084, 0.9289673923363004, 0.22727376737331384, 0.5414123970044269, 0.0844534212564596, 0.6765284772046276, 0.619325655574763, 0.39292160755260475 ], "type": "float32" }, "filter": { "shape": [2, 2, 1, 3], "data": [ 0.14543837927656278, 0.6952692250382182, 0.30721364807734, 0.9671129790291346, 0.5070913293589028, 0.4324123448833208, 0.10836050336762582, 0.0813970738017622, 0.9849002194630809, 0.320230810822804, 0.5303338853508432, 0.4281076188358701 ], "type": "float32", "constant": true } }, "options": { "inputLayout": "nhwc", "filterLayout": "hwio" }, "expected": { "name": "output", "shape": [2, 2, 2, 3], "data": [ 0.8845428228378296, 0.9626783132553101, 0.8020333051681519, 0.7413608431816101, 0.9108520746231079, 0.6277193427085876, 0.2897796928882599, 0.4832426905632019, 0.4483422338962555, 0.4053896367549896, 0.4878997206687927, 0.8711439371109009, 0.6932874917984009, 1.1787647008895874, 0.9170808792114258, 1.0369365215301514, 0.8123774528503418, 1.082636833190918, 0.8282973766326904, 0.816078782081604, 1.2353861331939697, 0.35335418581962585, 0.6780439019203186, 0.9810346961021423 ], "type": "float32" } }, { "name": "conv2d float32 4D input and filter tensors options.inputLayout='nhwc' and options.filterLayout='ohwi'", "inputs": { "input": { "shape": [2, 3, 3, 1], "data": [ 0.7529087201709872, 0.7520291960017611, 0.594952773514815, 0.21631854011984264, 0.07589348976741683, 0.15106785419828572, 0.12124850358598671, 0.5364335407319905, 0.5937089927693522, 0.9910031422560608, 0.36309423611370084, 0.9289673923363004, 0.22727376737331384, 0.5414123970044269, 0.0844534212564596, 0.6765284772046276, 0.619325655574763, 0.39292160755260475 ], "type": "float32" }, "filter": { "shape": [3, 2, 2, 1], "data": [ 0.14543837927656278, 0.9671129790291346, 0.10836050336762582, 0.320230810822804, 0.6952692250382182, 0.5070913293589028, 0.0813970738017622, 0.5303338853508432, 0.30721364807734, 0.4324123448833208, 0.9849002194630809, 0.4281076188358701 ], "type": "float32", "constant": true } }, "options": { "inputLayout": "nhwc", "filterLayout": "ohwi" }, "expected": { "name": "output", "shape": [2, 2, 2, 3], "data": [ 0.8845428228378296, 0.9626783132553101, 0.8020333051681519, 0.7413608431816101, 0.9108520746231079, 0.6277193427085876, 0.2897796928882599, 0.4832426905632019, 0.4483422338962555, 0.4053896367549896, 0.4878997206687927, 0.8711439371109009, 0.6932874917984009, 1.1787647008895874, 0.9170808792114258, 1.0369365215301514, 0.8123774528503418, 1.082636833190918, 0.8282973766326904, 0.816078782081604, 1.2353861331939697, 0.35335418581962585, 0.6780439019203186, 0.9810346961021423 ], "type": "float32" } }, { "name": "conv2d float32 4D input and filter tensors options.inputLayout='nhwc' and options.filterLayout='ihwo'", "inputs": { "input": { "shape": [2, 3, 3, 1], "data": [ 0.7529087201709872, 0.7520291960017611, 0.594952773514815, 0.21631854011984264, 0.07589348976741683, 0.15106785419828572, 0.12124850358598671, 0.5364335407319905, 0.5937089927693522, 0.9910031422560608, 0.36309423611370084, 0.9289673923363004, 0.22727376737331384, 0.5414123970044269, 0.0844534212564596, 0.6765284772046276, 0.619325655574763, 0.39292160755260475 ], "type": "float32" }, "filter": { "shape": [1, 2, 2, 3], "data": [ 0.14543837927656278, 0.6952692250382182, 0.30721364807734, 0.9671129790291346, 0.5070913293589028, 0.4324123448833208, 0.10836050336762582, 0.0813970738017622, 0.9849002194630809, 0.320230810822804, 0.5303338853508432, 0.4281076188358701 ], "type": "float32", "constant": true } }, "options": { "inputLayout": "nhwc", "filterLayout": "ihwo" }, "expected": { "name": "output", "shape": [2, 2, 2, 3], "data": [ 0.8845428228378296, 0.9626783132553101, 0.8020333051681519, 0.7413608431816101, 0.9108520746231079, 0.6277193427085876, 0.2897796928882599, 0.4832426905632019, 0.4483422338962555, 0.4053896367549896, 0.4878997206687927, 0.8711439371109009, 0.6932874917984009, 1.1787647008895874, 0.9170808792114258, 1.0369365215301514, 0.8123774528503418, 1.082636833190918, 0.8282973766326904, 0.816078782081604, 1.2353861331939697, 0.35335418581962585, 0.6780439019203186, 0.9810346961021423 ], "type": "float32" } }, { "name": "conv2d float32 4D input and filter tensors 1D options.bias", "inputs": { "input": { "shape": [2, 1, 3, 3], "data": [ 0.7529087201709872, 0.7520291960017611, 0.594952773514815, 0.21631854011984264, 0.07589348976741683, 0.15106785419828572, 0.12124850358598671, 0.5364335407319905, 0.5937089927693522, 0.9910031422560608, 0.36309423611370084, 0.9289673923363004, 0.22727376737331384, 0.5414123970044269, 0.0844534212564596, 0.6765284772046276, 0.619325655574763, 0.39292160755260475 ], "type": "float32" }, "filter": { "shape": [3, 1, 2, 2], "data": [ 0.14543837927656278, 0.9671129790291346, 0.10836050336762582, 0.320230810822804, 0.6952692250382182, 0.5070913293589028, 0.0813970738017622, 0.5303338853508432, 0.30721364807734, 0.4324123448833208, 0.9849002194630809, 0.4281076188358701 ], "type": "float32", "constant": true } }, "options": { "bias": { "shape": [3], "data": [ 0.8135762411918082, 0.8394582728923039, 0.4944481217318142 ], "type": "float32" } }, "expected": { "name": "output", "shape": [2, 3, 2, 2], "data": [ 1.698119044303894, 1.5549371242523193, 1.103355884552002, 1.2189658880233765, 1.8021366596221924, 1.7503103017807007, 1.3227009773254395, 1.3273580074310303, 1.2964813709259033, 1.1221674680709839, 0.9427903890609741, 1.365592122077942, 1.5068637132644653, 1.8505127429962158, 1.6418735980987549, 1.1669304370880127, 2.0182230472564697, 1.6518357992172241, 1.6555371284484863, 1.5175021886825562, 1.4115289449691772, 1.577085018157959, 1.7298341989517212, 1.4754828214645386 ], "type": "float32" } }, { "name": "conv2d float32 4D input and filter tensors options.activation=relu", "inputs": { "input": { "shape": [2, 1, 3, 3], "data": [ 0.7529087201709872, 0.7520291960017611, 0.594952773514815, 0.21631854011984264, 0.07589348976741683, 0.15106785419828572, 0.12124850358598671, 0.5364335407319905, 0.5937089927693522, 0.9910031422560608, 0.36309423611370084, 0.9289673923363004, 0.22727376737331384, 0.5414123970044269, 0.0844534212564596, 0.6765284772046276, 0.619325655574763, 0.39292160755260475 ], "type": "float32" }, "filter": { "shape": [3, 1, 2, 2], "data": [ 0.14543837927656278, 0.9671129790291346, 0.10836050336762582, 0.320230810822804, 0.6952692250382182, 0.5070913293589028, 0.0813970738017622, 0.5303338853508432, 0.30721364807734, 0.4324123448833208, 0.9849002194630809, 0.4281076188358701 ], "type": "float32", "constant": true } }, "options": { "activation": "relu" // relu operator }, "expected": { "name": "output", "shape": [2, 3, 2, 2], "data": [ 0.8845428228378296, 0.7413608431816101, 0.2897796928882599, 0.4053896367549896, 0.9626783132553101, 0.9108520746231079, 0.4832426905632019, 0.4878997206687927, 0.8020333051681519, 0.6277193427085876, 0.4483422338962555, 0.8711439371109009, 0.6932874917984009, 1.0369365215301514, 0.8282973766326904, 0.35335418581962585, 1.1787647008895874, 0.8123774528503418, 0.816078782081604, 0.6780439019203186, 0.9170808792114258, 1.082636833190918, 1.2353861331939697, 0.9810346961021423 ], "type": "float32" } }, { "name": "conv2d float32 4D input and filter tensors options.activation=sigmoid", "inputs": { "input": { "shape": [2, 1, 3, 3], "data": [ 0.7529087201709872, 0.7520291960017611, 0.594952773514815, 0.21631854011984264, 0.07589348976741683, 0.15106785419828572, 0.12124850358598671, 0.5364335407319905, 0.5937089927693522, 0.9910031422560608, 0.36309423611370084, 0.9289673923363004, 0.22727376737331384, 0.5414123970044269, 0.0844534212564596, 0.6765284772046276, 0.619325655574763, 0.39292160755260475 ], "type": "float32" }, "filter": { "shape": [3, 1, 2, 2], "data": [ 0.14543837927656278, 0.9671129790291346, 0.10836050336762582, 0.320230810822804, 0.6952692250382182, 0.5070913293589028, 0.0813970738017622, 0.5303338853508432, 0.30721364807734, 0.4324123448833208, 0.9849002194630809, 0.4281076188358701 ], "type": "float32", "constant": true } }, "options": { "activation": "sigmoid" // sigmoid operator }, "expected": { "name": "output", "shape": [2, 3, 2, 2], "data": [ 0.7077627182006836, 0.6772933602333069, 0.5719422101974487, 0.5999819040298462, 0.7236577272415161, 0.7131744623184204, 0.618513286113739, 0.6196115612983704, 0.690409243106842, 0.6519721746444702, 0.6102449893951416, 0.704983651638031, 0.6666978597640991, 0.7382584810256958, 0.6959947943687439, 0.5874307155609131, 0.7647256255149841, 0.6926159262657166, 0.6934033632278442, 0.6633020043373108, 0.7144469618797302, 0.7469926476478577, 0.7747598886489868, 0.7273134589195251 ], "type": "float32" } }, { "name": "conv2d float32 4D input and filter tensors all options", "inputs": { "input": { "shape": [1, 2, 5, 5], "data": [ 0.099713865777741, 0.5374298084250959, 0.3057007632742843, 0.7222362156944886, 0.5066556292918762, 0.32384305247826917, 0.8721967991940403, 0.2098985575512795, 0.5052645707816252, 0.026870572012360316, 0.549711590167792, 0.06430311230261965, 0.15606686251064295, 0.11970008688898925, 0.036145712495725846, 0.41425615451732734, 0.2417246544172511, 0.6771784996210519, 0.20870001886065692, 0.10979551271350108, 0.74503571903267, 0.744359267961296, 0.7873413310077146, 0.5887080289918305, 0.11018028997622342, 0.9045036346881179, 0.11725221841523448, 0.850866928863351, 0.42449196218095864, 0.025379145064212683, 0.7473908464918035, 0.46458599705779524, 0.030408120922724935, 0.4244018930520117, 0.38475478117872863, 0.7581132411894682, 0.990195198482533, 0.037168528384688315, 0.01449632238827725, 0.8263141930741622, 0.21072064610591013, 0.6569713718921535, 0.25842808185295607, 0.4802338559966235, 0.9704218808133291, 0.29682848294345554, 0.7524365722467021, 0.02963621027656349, 0.09028015289625446, 0.7781876138140071 ], "type": "float32" }, "filter": { "shape": [2, 2, 1, 2], "data": [ 0.6385681781775847, 0.07764163946007407, 0.12916297537217947, 0.45633891510482494, 0.40438535170611933, 0.594362681497403, 0.1424126456708108, 0.9036699957427188 ], "type": "float32", "constant": true } }, "options": { "padding": [1, 0, 0, 1], "strides": [1, 1], "autoPad": "explicit", "dilations": [1, 1], "groups": 2, "inputLayout": "nchw", "filterLayout": "hwio", "bias": { "shape": [2], "data": [ 0.5423753606058896, 0.8406119024104419 ], "type": "float32" }, "activation": "relu" // relu operator }, "expected": { "name": "output", "shape": [1, 2, 5, 5], "data": [ 0.6592350006103516, 0.8032397627830505, 0.7688518762588501, 0.9065912961959839, 0.7472594976425171, 0.9306347966194153, 1.3076419830322266, 0.987708330154419, 1.277161955833435, 0.8767756223678589, 1.0932797193527222, 1.1746727228164673, 0.8218293786048889, 0.9220445156097412, 0.5741508603096008, 1.103653073310852, 0.7977840900421143, 0.9610581398010254, 0.7235122323036194, 0.6098566055297852, 1.2454158067703247, 1.1973347663879395, 1.4039851427078247, 0.9435820579528809, 0.6570426225662231, 1.4841723442077637, 1.6792051792144775, 1.729936122894287, 1.115848422050476, 0.8556963205337524, 1.828399419784546, 1.5416107177734375, 1.5019794702529907, 1.4850915670394897, 1.0712661743164062, 2.4560532569885254, 1.5126826763153076, 1.0718353986740112, 1.8044731616973877, 1.3616151809692383, 2.07026743888855, 1.5584666728973389, 1.4376858472824097, 2.3811910152435303, 1.4815508127212524, 2.0131523609161377, 1.4835525751113892, 1.1790242195129395, 2.0776233673095703, 1.378482699394226 ], "type": "float32" } }, { "name": "conv2d float32 4D input and filter tensors, both negative input tensor and options.bias", "inputs": { "input": { "shape": [1, 2, 5, 5], "data": [ -0.8073334836059594, -0.8839999531200213, -0.7700487271672907, -0.5646049640597197, -0.3971793875202543, -0.1084135691143644, -0.5519214808736546, -0.3954172077064906, -0.05758975763264007, -0.5144240745380702, -0.21321901474354354, -0.9506090015630133, -0.8043696918281786, -0.8646378386343376, -0.9607220763612241, -0.3264438487690362, -0.0688429735597631, -0.32033992561547486, -0.2692728077259734, -0.34308877644524194, -0.8989502140796819, -0.9038569138324508, -0.6369403164357454, -0.20070796788073975, -0.7870701966207543, -0.3467883629993205, -0.06004269369586446, -0.1498520855746983, -0.6482332485869089, -0.8934088233365358, -0.8149284803583503, -0.642366834151139, -0.03273624021014587, -0.6608918929180299, -0.5843491800022218, -0.09921254485788045, -0.1660252392520163, -0.9508541527000836, -0.30514628810841127, -0.6210587190159238, -0.5400903646960964, -0.42009180747436625, -0.1882453942541189, -0.3588937522647535, -0.7114293416682491, -0.3751019899620214, -0.7108227479593932, -0.36050302242678467, -0.5468712310796768, -0.03226159510823612 ], "type": "float32" }, "filter": { "shape": [2, 2, 1, 2], "data": [ 0.6385681781775847, 0.07764163946007407, 0.12916297537217947, 0.45633891510482494, 0.40438535170611933, 0.594362681497403, 0.1424126456708108, 0.9036699957427188 ], "type": "float32", "constant": true } }, "options": { "padding": [1, 0, 0, 1], "groups": 2, "filterLayout": "hwio", "bias": { "shape": [2], "data": [ -0.37496936418502824, -0.4363507146568044 ], "type": "float32" } }, "expected": { "name": "output", "shape": [1, 2, 5, 5], "data": [ -0.8273359537124634, -0.8421106934547424, -0.7667726874351501, -0.6598507165908813, -0.5355829000473022, -1.1271283626556396, -1.3184267282485962, -1.1077264547348022, -0.8833579421043396, -0.8366210460662842, -0.7370880246162415, -1.2774468660354614, -1.0833193063735962, -0.9646547436714172, -1.091966152191162, -0.7757209539413452, -1.1593523025512695, -1.1681820154190063, -1.2089394330978394, -1.127195954322815, -1.0845609903335571, -0.9165211915969849, -0.9004610180854797, -0.78448486328125, -0.9123346209526062, -0.6967275738716125, -0.6074546575546265, -1.1112061738967896, -1.6289831399917603, -0.9673595428466797, -1.5555264949798584, -0.9207774996757507, -1.3604848384857178, -1.8152461051940918, -0.8530317544937134, -1.0017603635787964, -1.4591015577316284, -1.5813868045806885, -1.4969244003295898, -0.8508546352386475, -1.2204514741897583, -1.3029515743255615, -1.0856342315673828, -1.5996664762496948, -0.9074177742004395, -1.5352842807769775, -1.303133249282837, -1.3232042789459229, -1.1430623531341553, -0.5107623338699341 ], "type": "float32" } } ] }