Skip to content

Commit

Permalink
Add BCD for the WebNN API (#22569)
Browse files Browse the repository at this point in the history
* Add BCD for the WebNN API

* Fix CI issues

* Bug fix based on review feedback

* Using array support statement and notes for supporting hardware and OS dimensions
  • Loading branch information
ibelem authored Mar 14, 2024
1 parent 303ff2e commit 508f0c4
Show file tree
Hide file tree
Showing 8 changed files with 5,406 additions and 0 deletions.
102 changes: 102 additions & 0 deletions api/ML.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
{
"api": {
"ML": {
"__compat": {
"spec_url": "https://www.w3.org/TR/webnn/#api-ml",
"tags": [
"web-features:webnn"
],
"support": {
"chrome": {
"version_added": "112",
"flags": [
{
"type": "preference",
"name": "#web-machine-learning-neural-network",
"value_to_set": "Enabled"
}
],
"notes": "Currently supported on ChromeOS and Windows only."
},
"chrome_android": {
"version_added": false
},
"deno": {
"version_added": false
},
"edge": "mirror",
"firefox": {
"version_added": false
},
"firefox_android": "mirror",
"ie": {
"version_added": false
},
"oculus": "mirror",
"opera": "mirror",
"opera_android": "mirror",
"safari": {
"version_added": false
},
"safari_ios": "mirror",
"samsunginternet_android": "mirror",
"webview_android": "mirror"
},
"status": {
"experimental": true,
"standard_track": true,
"deprecated": false
}
},
"createContext": {
"__compat": {
"spec_url": "https://www.w3.org/TR/webnn/#dom-ml-createcontext",
"tags": [
"web-features:webnn"
],
"support": {
"chrome": {
"version_added": "112",
"flags": [
{
"type": "preference",
"name": "#web-machine-learning-neural-network",
"value_to_set": "Enabled"
}
],
"notes": "Currently supported on ChromeOS and Windows only."
},
"chrome_android": {
"version_added": false
},
"deno": {
"version_added": false
},
"edge": "mirror",
"firefox": {
"version_added": false
},
"firefox_android": "mirror",
"ie": {
"version_added": false
},
"oculus": "mirror",
"opera": "mirror",
"opera_android": "mirror",
"safari": {
"version_added": false
},
"safari_ios": "mirror",
"samsunginternet_android": "mirror",
"webview_android": "mirror"
},
"status": {
"experimental": true,
"standard_track": true,
"deprecated": false
}
}
}
}
}
}
53 changes: 53 additions & 0 deletions api/MLActivation.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
{
"api": {
"MLActivation": {
"__compat": {
"spec_url": "https://www.w3.org/TR/webnn/#api-mlactivation",
"tags": [
"web-features:webnn"
],
"support": {
"chrome": {
"version_added": "112",
"flags": [
{
"type": "preference",
"name": "#web-machine-learning-neural-network",
"value_to_set": "Enabled"
}
],
"notes": "Currently supported on ChromeOS and Windows only."
},
"chrome_android": {
"version_added": false
},
"deno": {
"version_added": false
},
"edge": "mirror",
"firefox": {
"version_added": false
},
"firefox_android": "mirror",
"ie": {
"version_added": false
},
"oculus": "mirror",
"opera": "mirror",
"opera_android": "mirror",
"safari": {
"version_added": false
},
"safari_ios": "mirror",
"samsunginternet_android": "mirror",
"webview_android": "mirror"
},
"status": {
"experimental": true,
"standard_track": true,
"deprecated": false
}
}
}
}
}
102 changes: 102 additions & 0 deletions api/MLContext.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
{
"api": {
"MLContext": {
"__compat": {
"spec_url": "https://www.w3.org/TR/webnn/#api-mlcontext",
"tags": [
"web-features:webnn"
],
"support": {
"chrome": {
"version_added": "112",
"flags": [
{
"type": "preference",
"name": "#web-machine-learning-neural-network",
"value_to_set": "Enabled"
}
],
"notes": "Currently supported on ChromeOS and Windows only."
},
"chrome_android": {
"version_added": false
},
"deno": {
"version_added": false
},
"edge": "mirror",
"firefox": {
"version_added": false
},
"firefox_android": "mirror",
"ie": {
"version_added": false
},
"oculus": "mirror",
"opera": "mirror",
"opera_android": "mirror",
"safari": {
"version_added": false
},
"safari_ios": "mirror",
"samsunginternet_android": "mirror",
"webview_android": "mirror"
},
"status": {
"experimental": true,
"standard_track": true,
"deprecated": false
}
},
"compute": {
"__compat": {
"spec_url": "https://www.w3.org/TR/webnn/#api-mlcontext-compute",
"tags": [
"web-features:webnn"
],
"support": {
"chrome": {
"version_added": "112",
"flags": [
{
"type": "preference",
"name": "#web-machine-learning-neural-network",
"value_to_set": "Enabled"
}
],
"notes": "Currently supported on ChromeOS and Windows only."
},
"chrome_android": {
"version_added": false
},
"deno": {
"version_added": false
},
"edge": "mirror",
"firefox": {
"version_added": false
},
"firefox_android": "mirror",
"ie": {
"version_added": false
},
"oculus": "mirror",
"opera": "mirror",
"opera_android": "mirror",
"safari": {
"version_added": false
},
"safari_ios": "mirror",
"samsunginternet_android": "mirror",
"webview_android": "mirror"
},
"status": {
"experimental": true,
"standard_track": true,
"deprecated": false
}
}
}
}
}
}
52 changes: 52 additions & 0 deletions api/MLGraph.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{
"api": {
"MLGraph": {
"__compat": {
"spec_url": "https://www.w3.org/TR/webnn/#api-mlgraph",
"tags": [
"web-features:webnn"
],
"support": {
"chrome": {
"version_added": "112",
"flags": [
{
"type": "preference",
"name": "#web-machine-learning-neural-network",
"value_to_set": "Enabled"
}
]
},
"chrome_android": {
"version_added": false
},
"deno": {
"version_added": false
},
"edge": "mirror",
"firefox": {
"version_added": false
},
"firefox_android": "mirror",
"ie": {
"version_added": false
},
"oculus": "mirror",
"opera": "mirror",
"opera_android": "mirror",
"safari": {
"version_added": false
},
"safari_ios": "mirror",
"samsunginternet_android": "mirror",
"webview_android": "mirror"
},
"status": {
"experimental": true,
"standard_track": true,
"deprecated": false
}
}
}
}
}
Loading

0 comments on commit 508f0c4

Please sign in to comment.