Skip to content

Commit

Permalink
Adding a WebNN feature (#1199)
Browse files Browse the repository at this point in the history
  • Loading branch information
captainbrosset committed Jun 7, 2024
1 parent e6d0ede commit 5ec1952
Show file tree
Hide file tree
Showing 3 changed files with 107 additions and 0 deletions.
3 changes: 3 additions & 0 deletions features/webnn.yml
Original file line number Diff line number Diff line change
@@ -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/
100 changes: 100 additions & 0 deletions features/webnn.yml.dist
Original file line number Diff line number Diff line change
@@ -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
4 changes: 4 additions & 0 deletions scripts/specs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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."
]
];

Expand Down

0 comments on commit 5ec1952

Please # to comment.