diff --git a/features/webnn.yml b/features/webnn.yml new file mode 100644 index 0000000000..7fa05ba10a --- /dev/null +++ b/features/webnn.yml @@ -0,0 +1,3 @@ +name: WebNN +description: The WebNN API constructs and executes computational graphs of neural networks by making use of the various machine learning capabilities and hardware accelerators available on the device. Also known as Web Neural Network API. +spec: https://www.w3.org/TR/webnn/ diff --git a/features/webnn.yml.dist b/features/webnn.yml.dist new file mode 100644 index 0000000000..2a0314225a --- /dev/null +++ b/features/webnn.yml.dist @@ -0,0 +1,100 @@ +# Generated from: webnn.yml +# Do not edit this file by hand. Edit the source file instead! + +status: + baseline: false + support: {} +compat_features: + - api.ML + - api.ML.createContext + - api.MLActivation + - api.MLContext + - api.MLContext.compute + - api.MLGraph + - api.MLGraphBuilder + - api.MLGraphBuilder.MLGraphBuilder + - api.MLGraphBuilder.abs + - api.MLGraphBuilder.add + - api.MLGraphBuilder.argMax + - api.MLGraphBuilder.argMin + - api.MLGraphBuilder.averagePool2d + - api.MLGraphBuilder.batchNormalization + - api.MLGraphBuilder.build + - api.MLGraphBuilder.cast + - api.MLGraphBuilder.ceil + - api.MLGraphBuilder.clamp + - api.MLGraphBuilder.concat + - api.MLGraphBuilder.constant + - api.MLGraphBuilder.conv2d + - api.MLGraphBuilder.convTranspose2d + - api.MLGraphBuilder.cos + - api.MLGraphBuilder.div + - api.MLGraphBuilder.elu + - api.MLGraphBuilder.equal + - api.MLGraphBuilder.erf + - api.MLGraphBuilder.exp + - api.MLGraphBuilder.expand + - api.MLGraphBuilder.floor + - api.MLGraphBuilder.gather + - api.MLGraphBuilder.gemm + - api.MLGraphBuilder.greater + - api.MLGraphBuilder.greaterOrEqual + - api.MLGraphBuilder.gru + - api.MLGraphBuilder.gruCell + - api.MLGraphBuilder.hardSigmoid + - api.MLGraphBuilder.hardSwish + - api.MLGraphBuilder.identity + - api.MLGraphBuilder.input + - api.MLGraphBuilder.instanceNormalization + - api.MLGraphBuilder.l2Pool2d + - api.MLGraphBuilder.layerNormalization + - api.MLGraphBuilder.leakyRelu + - api.MLGraphBuilder.lesser + - api.MLGraphBuilder.lesserOrEqual + - api.MLGraphBuilder.linear + - api.MLGraphBuilder.log + - api.MLGraphBuilder.lstm + - api.MLGraphBuilder.lstmCell + - api.MLGraphBuilder.matmul + - api.MLGraphBuilder.max + - api.MLGraphBuilder.maxPool2d + - api.MLGraphBuilder.min + - api.MLGraphBuilder.mul + - api.MLGraphBuilder.neg + - api.MLGraphBuilder.not + - api.MLGraphBuilder.pad + - api.MLGraphBuilder.pow + - api.MLGraphBuilder.prelu + - api.MLGraphBuilder.reciprocal + - api.MLGraphBuilder.reduceL1 + - api.MLGraphBuilder.reduceL2 + - api.MLGraphBuilder.reduceLogSum + - api.MLGraphBuilder.reduceLogSumExp + - api.MLGraphBuilder.reduceMax + - api.MLGraphBuilder.reduceMean + - api.MLGraphBuilder.reduceMin + - api.MLGraphBuilder.reduceProduct + - api.MLGraphBuilder.reduceSum + - api.MLGraphBuilder.reduceSumSquare + - api.MLGraphBuilder.relu + - api.MLGraphBuilder.resample2d + - api.MLGraphBuilder.reshape + - api.MLGraphBuilder.sigmoid + - api.MLGraphBuilder.sin + - api.MLGraphBuilder.slice + - api.MLGraphBuilder.softmax + - api.MLGraphBuilder.softplus + - api.MLGraphBuilder.softsign + - api.MLGraphBuilder.split + - api.MLGraphBuilder.sqrt + - api.MLGraphBuilder.sub + - api.MLGraphBuilder.tan + - api.MLGraphBuilder.tanh + - api.MLGraphBuilder.transpose + - api.MLGraphBuilder.triangular + - api.MLGraphBuilder.where + - api.MLOperand + - api.MLOperand.dataType + - api.MLOperand.shape + - api.Navigator.ml + - api.WorkerNavigator.ml diff --git a/scripts/specs.ts b/scripts/specs.ts index 320d9f022b..51d9a46e63 100644 --- a/scripts/specs.ts +++ b/scripts/specs.ts @@ -32,6 +32,10 @@ const defaultAllowlist: allowlistItem[] = [ [ "https://wicg.github.io/controls-list/", "Allowed because it's shipped in Chrome. Remove this exception if https://github.com/whatwg/html/pull/6715 is merged." + ], + [ + "https://www.w3.org/TR/webnn/", + "Allowed because this URL actually serves the same content as the Editor Draft URL, and because the ED URL is a bit verbose. See https://github.com/mdn/browser-compat-data/pull/22569#issuecomment-1992632118." ] ];