|
| 1 | +draft_date: 2025-10-13 |
| 2 | +name: Web Neural Network API |
| 3 | +description: TODO |
| 4 | +spec: https://webmachinelearning.github.io/webnn/ |
| 5 | +compat_features: |
| 6 | + - api.MLContext.createTensor |
| 7 | + - api.MLContext.destroy |
| 8 | + - api.MLContext.readTensor |
| 9 | + - api.MLContext.writeTensor |
| 10 | + - api.MLGraph.destroy |
| 11 | + - api.MLGraphBuilder.isInfinite |
| 12 | + - api.MLGraphBuilder.isNaN |
| 13 | + - api.MLGraphBuilder.reverse |
| 14 | + - api.MLGraphBuilder.roundEven |
| 15 | + - api.MLTensor |
| 16 | + - api.MLTensor.destroy |
| 17 | + |
| 18 | +# The following features in the spec are already part of web-features: |
| 19 | +# - WebNN: |
| 20 | +# - api.ML |
| 21 | +# - api.ML.createContext |
| 22 | +# - api.MLContext |
| 23 | +# - api.MLContext.dispatch |
| 24 | +# - api.MLContext.opSupportLimits |
| 25 | +# - api.MLGraph |
| 26 | +# - api.MLGraphBuilder |
| 27 | +# - api.MLGraphBuilder.MLGraphBuilder |
| 28 | +# - api.MLGraphBuilder.abs |
| 29 | +# - api.MLGraphBuilder.add |
| 30 | +# - api.MLGraphBuilder.argMax |
| 31 | +# - api.MLGraphBuilder.argMin |
| 32 | +# - api.MLGraphBuilder.averagePool2d |
| 33 | +# - api.MLGraphBuilder.batchNormalization |
| 34 | +# - api.MLGraphBuilder.build |
| 35 | +# - api.MLGraphBuilder.cast |
| 36 | +# - api.MLGraphBuilder.ceil |
| 37 | +# - api.MLGraphBuilder.clamp |
| 38 | +# - api.MLGraphBuilder.concat |
| 39 | +# - api.MLGraphBuilder.constant |
| 40 | +# - api.MLGraphBuilder.conv2d |
| 41 | +# - api.MLGraphBuilder.convTranspose2d |
| 42 | +# - api.MLGraphBuilder.cos |
| 43 | +# - api.MLGraphBuilder.cumulativeSum |
| 44 | +# - api.MLGraphBuilder.dequantizeLinear |
| 45 | +# - api.MLGraphBuilder.div |
| 46 | +# - api.MLGraphBuilder.elu |
| 47 | +# - api.MLGraphBuilder.equal |
| 48 | +# - api.MLGraphBuilder.erf |
| 49 | +# - api.MLGraphBuilder.exp |
| 50 | +# - api.MLGraphBuilder.expand |
| 51 | +# - api.MLGraphBuilder.floor |
| 52 | +# - api.MLGraphBuilder.gather |
| 53 | +# - api.MLGraphBuilder.gatherElements |
| 54 | +# - api.MLGraphBuilder.gatherND |
| 55 | +# - api.MLGraphBuilder.gemm |
| 56 | +# - api.MLGraphBuilder.greater |
| 57 | +# - api.MLGraphBuilder.greaterOrEqual |
| 58 | +# - api.MLGraphBuilder.gru |
| 59 | +# - api.MLGraphBuilder.gruCell |
| 60 | +# - api.MLGraphBuilder.hardSigmoid |
| 61 | +# - api.MLGraphBuilder.hardSwish |
| 62 | +# - api.MLGraphBuilder.identity |
| 63 | +# - api.MLGraphBuilder.input |
| 64 | +# - api.MLGraphBuilder.instanceNormalization |
| 65 | +# - api.MLGraphBuilder.l2Pool2d |
| 66 | +# - api.MLGraphBuilder.layerNormalization |
| 67 | +# - api.MLGraphBuilder.leakyRelu |
| 68 | +# - api.MLGraphBuilder.lesser |
| 69 | +# - api.MLGraphBuilder.lesserOrEqual |
| 70 | +# - api.MLGraphBuilder.linear |
| 71 | +# - api.MLGraphBuilder.log |
| 72 | +# - api.MLGraphBuilder.logicalAnd |
| 73 | +# - api.MLGraphBuilder.logicalNot |
| 74 | +# - api.MLGraphBuilder.logicalOr |
| 75 | +# - api.MLGraphBuilder.logicalXor |
| 76 | +# - api.MLGraphBuilder.lstm |
| 77 | +# - api.MLGraphBuilder.lstmCell |
| 78 | +# - api.MLGraphBuilder.matmul |
| 79 | +# - api.MLGraphBuilder.max |
| 80 | +# - api.MLGraphBuilder.maxPool2d |
| 81 | +# - api.MLGraphBuilder.min |
| 82 | +# - api.MLGraphBuilder.mul |
| 83 | +# - api.MLGraphBuilder.neg |
| 84 | +# - api.MLGraphBuilder.pad |
| 85 | +# - api.MLGraphBuilder.pow |
| 86 | +# - api.MLGraphBuilder.prelu |
| 87 | +# - api.MLGraphBuilder.quantizeLinear |
| 88 | +# - api.MLGraphBuilder.reciprocal |
| 89 | +# - api.MLGraphBuilder.reduceL1 |
| 90 | +# - api.MLGraphBuilder.reduceL2 |
| 91 | +# - api.MLGraphBuilder.reduceLogSum |
| 92 | +# - api.MLGraphBuilder.reduceLogSumExp |
| 93 | +# - api.MLGraphBuilder.reduceMax |
| 94 | +# - api.MLGraphBuilder.reduceMean |
| 95 | +# - api.MLGraphBuilder.reduceMin |
| 96 | +# - api.MLGraphBuilder.reduceProduct |
| 97 | +# - api.MLGraphBuilder.reduceSum |
| 98 | +# - api.MLGraphBuilder.reduceSumSquare |
| 99 | +# - api.MLGraphBuilder.relu |
| 100 | +# - api.MLGraphBuilder.resample2d |
| 101 | +# - api.MLGraphBuilder.reshape |
| 102 | +# - api.MLGraphBuilder.scatterElements |
| 103 | +# - api.MLGraphBuilder.scatterND |
| 104 | +# - api.MLGraphBuilder.sigmoid |
| 105 | +# - api.MLGraphBuilder.sign |
| 106 | +# - api.MLGraphBuilder.sin |
| 107 | +# - api.MLGraphBuilder.slice |
| 108 | +# - api.MLGraphBuilder.softmax |
| 109 | +# - api.MLGraphBuilder.softplus |
| 110 | +# - api.MLGraphBuilder.softsign |
| 111 | +# - api.MLGraphBuilder.split |
| 112 | +# - api.MLGraphBuilder.sqrt |
| 113 | +# - api.MLGraphBuilder.sub |
| 114 | +# - api.MLGraphBuilder.tan |
| 115 | +# - api.MLGraphBuilder.tanh |
| 116 | +# - api.MLGraphBuilder.tile |
| 117 | +# - api.MLGraphBuilder.transpose |
| 118 | +# - api.MLGraphBuilder.triangular |
| 119 | +# - api.MLGraphBuilder.where |
| 120 | +# - api.MLOperand |
| 121 | +# - api.Navigator.ml |
| 122 | +# - api.WorkerNavigator.ml |
0 commit comments