Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WebNN API - Nov 2024 update #25065

Merged
merged 8 commits into from
Nov 19, 2024
Merged

WebNN API - Nov 2024 update #25065

merged 8 commits into from
Nov 19, 2024

Conversation

ibelem
Copy link
Contributor

@ibelem ibelem commented Nov 14, 2024

Summary

This PR updated BCD for the WebNN API.

Over the past 8 months, the WebNN API has made significant progress, expanding its platform support beyond Windows and ChromeOS to include macOS and Linux.

Currently the WebNN feature is behind the #web-machine-learning-neural-network flag.

@anssiko @Elchi3 PTAL

CC @captainbrosset @foolip for any web-platform-dx/web-features update - web-platform-dx/web-features#1199

@github-actions github-actions bot added the data:api Compat data for Web APIs. https://developer.mozilla.org/docs/Web/API label Nov 14, 2024
Copy link

@anssiko anssiko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Much thanks @ibelem! Approved for the general content.

@Elchi3 to check for the BCD schema compliance.

api/ML.json Outdated Show resolved Hide resolved
@Elchi3
Copy link
Member

Elchi3 commented Nov 14, 2024

Given this is a large PR, here's the output of our diff script:

api.ML:
 → support.chrome.notes is deleted
api.ML.createContext:
 → spec_url is edited ("https://www.w3.org/TR/webnn/#dom-ml-createcontext" → "https://www.w3.org/TR/webnn/#api-ml-createcontext")
 → support.chrome.notes is deleted
api.MLContext:
 → support.chrome.notes is deleted
 → api.MLContext.dispatch is added
 → api.MLContext.opSupportLimits is added
api.MLContext.compute:
 → support.chrome.notes is deleted
 → status.experimental is edited (true → false)
 → status.deprecated is edited (false → true)
api.MLGraphBuilder:
 → support.chrome.notes is deleted
 → api.MLGraphBuilder.cumulativeSum is added
 → api.MLGraphBuilder.dequantizeLinear is added
 → api.MLGraphBuilder.gatherElements is added
 → api.MLGraphBuilder.gatherND is added
 → api.MLGraphBuilder.logicalAnd is added
 → api.MLGraphBuilder.logicalOr is added
 → api.MLGraphBuilder.logicalXor is added
 → api.MLGraphBuilder.quantizeLinear is added
 → api.MLGraphBuilder.scatterElements is added
 → api.MLGraphBuilder.scatterND is added
 → api.MLGraphBuilder.sign is added
 → api.MLGraphBuilder.tile is added
api.MLGraphBuilder.MLGraphBuilder:
 → support.chrome.notes is deleted
api.MLGraphBuilder.abs:
 → support.chrome.2.notes is edited (prose change)
 → support.chrome.1.notes is edited (prose change)
 → support.chrome.0.version_added is edited ("123" → "126")
 → support.chrome.0.notes is edited (prose change)
api.MLGraphBuilder.add:
 → support.chrome.2.notes is edited (prose change)
 → support.chrome.1.notes is edited (prose change)
 → support.chrome.0.notes is edited (prose change)
api.MLGraphBuilder.argMax:
 → support.chrome is edited ({"version_added":"122","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on CPUs on Windows."} → [{"version_added":"128","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on CPUs, GPUs and NPUs on macOS."},{"version_added":"126","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on CPUs on Windows, ChromeOS and Linux."},{"version_added":"122","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on GPUs and NPUs on Windows."}])
api.MLGraphBuilder.argMin:
 → support.chrome is edited ({"version_added":"122","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on CPUs on Windows."} → [{"version_added":"128","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on CPUs, GPUs and NPUs on macOS."},{"version_added":"126","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on CPUs on Windows, ChromeOS and Linux."},{"version_added":"122","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on GPUs and NPUs on Windows."}])
api.MLGraphBuilder.averagePool2d:
 → support.chrome.2.notes is edited (prose change)
 → support.chrome.1.notes is edited (prose change)
 → support.chrome.0.version_added is edited ("122" → "126")
 → support.chrome.0.notes is edited (prose change)
api.MLGraphBuilder.batchNormalization:
 → support.chrome is edited ({"version_added":"122","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on CPUs on Windows."} → [{"version_added":"127","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on CPUs on Windows, ChromeOS and Linux."},{"version_added":"126","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on CPUs, GPUs and NPUs on macOS."},{"version_added":"122","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on GPUs and NPUs on Windows."}])
api.MLGraphBuilder.cast:
 → support.chrome is edited ({"version_added":"122","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on CPUs on Windows."} → [{"version_added":"126","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on CPUs on Windows, ChromeOS and Linux."},{"version_added":"124","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on CPUs, GPUs and NPUs on macOS."},{"version_added":"122","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on GPUs and NPUs on Windows."}])
api.MLGraphBuilder.ceil:
 → support.chrome.2.notes is edited (prose change)
 → support.chrome.1.notes is edited (prose change)
 → support.chrome.0.version_added is edited ("123" → "126")
 → support.chrome.0.notes is edited (prose change)
api.MLGraphBuilder.clamp:
 → support.chrome.2.notes is edited (prose change)
 → support.chrome.1.notes is edited (prose change)
 → support.chrome.0.version_added is edited ("124" → "125")
 → support.chrome.0.notes is edited (prose change)
api.MLGraphBuilder.concat:
 → support.chrome.2.notes is edited (prose change)
 → support.chrome.1.notes is edited (prose change)
 → support.chrome.0.version_added is edited ("123" → "125")
 → support.chrome.0.notes is edited (prose change)
api.MLGraphBuilder.constant:
 → support.chrome.2.notes is edited (prose change)
 → support.chrome.1.notes is edited (prose change)
 → support.chrome.0.version_added is edited ("112" → "123")
 → support.chrome.0.notes is edited (prose change)
api.MLGraphBuilder.conv2d:
 → support.chrome.2.notes is edited (prose change)
 → support.chrome.1.notes is edited (prose change)
 → support.chrome.0.version_added is edited ("122" → "125")
 → support.chrome.0.notes is edited (prose change)
api.MLGraphBuilder.convTranspose2d:
 → support.chrome is edited (undefined → undefined)
 → support.chrome.1.version_added is edited ("113" → "126")
 → support.chrome.1.notes is edited (prose change)
 → support.chrome.0.version_added is edited ("121" → "128")
 → support.chrome.0.notes is edited (prose change)
api.MLGraphBuilder.cos:
 → support.chrome is edited (undefined → undefined)
 → support.chrome.1.version_added is edited ("121" → "123")
 → support.chrome.1.notes is edited (prose change)
 → support.chrome.0.version_added is edited ("123" → "126")
 → support.chrome.0.notes is edited (prose change)
api.MLGraphBuilder.div:
 → support.chrome.2.notes is edited (prose change)
 → support.chrome.1.notes is edited (prose change)
 → support.chrome.0.version_added is edited ("122" → "124")
 → support.chrome.0.notes is edited (prose change)
api.MLGraphBuilder.elu:
 → support.chrome.2.notes is edited (prose change)
 → support.chrome.1.notes is edited (prose change)
 → support.chrome.0.version_added is edited ("123" → "126")
 → support.chrome.0.notes is edited (prose change)
api.MLGraphBuilder.equal:
 → support.chrome is edited ({"version_added":"122","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on GPUs on Windows."} → [{"version_added":"126","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on CPUs on Windows, ChromeOS and Linux."},{"version_added":"125","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on CPUs, GPUs and NPUs on macOS."},{"version_added":"122","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on GPUs and NPUs on Windows."}])
api.MLGraphBuilder.erf:
 → support.chrome is edited ({"version_added":"121","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on GPUs on Windows."} → [{"version_added":"128","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on CPUs on Windows, ChromeOS and Linux."},{"version_added":"126","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on CPUs, GPUs and NPUs on macOS."},{"version_added":"121","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on GPUs and NPUs on Windows."}])
api.MLGraphBuilder.exp:
 → support.chrome is edited (undefined → undefined)
 → support.chrome.1.version_added is edited ("121" → "123")
 → support.chrome.1.notes is edited (prose change)
 → support.chrome.0.version_added is edited ("123" → "126")
 → support.chrome.0.notes is edited (prose change)
api.MLGraphBuilder.expand:
 → support.chrome is edited ({"version_added":"121","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on GPUs on Windows."} → [{"version_added":"128","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on CPUs on Windows, ChromeOS and Linux."},{"version_added":"128","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on CPUs, GPUs and NPUs on macOS."},{"version_added":"121","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on GPUs and NPUs on Windows."}])
api.MLGraphBuilder.floor:
 → support.chrome.2.notes is edited (prose change)
 → support.chrome.1.notes is edited (prose change)
 → support.chrome.0.version_added is edited ("123" → "126")
 → support.chrome.0.notes is edited (prose change)
api.MLGraphBuilder.gather:
 → support.chrome is edited ({"version_added":"122","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on GPUs on Windows."} → [{"version_added":"126","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on CPUs on Windows, ChromeOS and Linux."},{"version_added":"126","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on CPUs, GPUs and NPUs on macOS."},{"version_added":"122","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on GPUs and NPUs on Windows."}])
api.MLGraphBuilder.gemm:
 → support.chrome.2.notes is edited (prose change)
 → support.chrome.1.notes is edited (prose change)
 → support.chrome.0.version_added is edited ("124" → "126")
 → support.chrome.0.notes is edited (prose change)
api.MLGraphBuilder.greater:
 → support.chrome is edited ({"version_added":"122","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on GPUs on Windows."} → [{"version_added":"126","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on CPUs on Windows, ChromeOS and Linux."},{"version_added":"125","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on CPUs, GPUs and NPUs on macOS."},{"version_added":"122","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on GPUs and NPUs on Windows."}])
api.MLGraphBuilder.greaterOrEqual:
 → support.chrome is edited ({"version_added":"122","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on GPUs on Windows."} → [{"version_added":"126","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on GPUs and NPUs on Windows."},{"version_added":"125","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on CPUs, GPUs and NPUs on macOS."},{"version_added":"122","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on CPUs on Windows, ChromeOS and Linux."}])
api.MLGraphBuilder.gru:
 → support.chrome is edited ({"version_added":"124","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on GPUs on Windows."} → [{"version_added":"133","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on CPUs, GPUs and NPUs on macOS."},{"version_added":"129","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on CPUs on Windows, ChromeOS and Linux."},{"version_added":"125","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on GPUs and NPUs on Windows."}])
api.MLGraphBuilder.gruCell:
 → support.chrome is edited ({"version_added":"124","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on GPUs on Windows."} → [{"version_added":"133","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on CPUs, GPUs and NPUs on macOS."},{"version_added":"129","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on CPUs on Windows, ChromeOS and Linux."},{"version_added":"125","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on GPUs and NPUs on Windows."}])
api.MLGraphBuilder.hardSigmoid:
 → support.chrome is edited ({"version_added":"123","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on GPUs on Windows."} → [{"version_added":"126","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on CPUs on Windows, ChromeOS and Linux."},{"version_added":"126","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on CPUs, GPUs and NPUs on macOS."},{"version_added":"123","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on GPUs and NPUs on Windows."}])
api.MLGraphBuilder.hardSwish:
 → support.chrome.2.notes is edited (prose change)
 → support.chrome.1.notes is edited (prose change)
 → support.chrome.0.version_added is edited ("123" → "126")
 → support.chrome.0.notes is edited (prose change)
api.MLGraphBuilder.identity:
 → support.chrome is edited ({"version_added":"121","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on GPUs on Windows."} → [{"version_added":"126","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on CPUs on Windows, ChromeOS and Linux."},{"version_added":"126","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on CPUs, GPUs and NPUs on macOS."},{"version_added":"121","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on GPUs and NPUs on Windows."}])
api.MLGraphBuilder.input:
 → support.chrome.2.notes is edited (prose change)
 → support.chrome.1.notes is edited (prose change)
 → support.chrome.0.version_added is edited ("123" → "124")
 → support.chrome.0.notes is edited (prose change)
api.MLGraphBuilder.instanceNormalization:
 → support.chrome is edited ({"version_added":"122","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on GPUs on Windows."} → [{"version_added":"127","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on CPUs on Windows, ChromeOS and Linux."},{"version_added":"126","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on CPUs, GPUs and NPUs on macOS."},{"version_added":"122","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on GPUs and NPUs on Windows."}])
api.MLGraphBuilder.l2Pool2d:
 → support.chrome is edited ({"version_added":"123","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on GPUs on Windows."} → [{"version_added":"126","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on CPUs, GPUs and NPUs on macOS."},{"version_added":"123","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on GPUs and NPUs on Windows."}])
api.MLGraphBuilder.layerNormalization:
 → support.chrome is edited ({"version_added":"122","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on GPUs on Windows."} → [{"version_added":"129","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on CPUs, GPUs and NPUs on macOS."},{"version_added":"127","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on CPUs on Windows, ChromeOS and Linux."},{"version_added":"122","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on GPUs and NPUs on Windows."}])
api.MLGraphBuilder.leakyRelu:
 → support.chrome.2.notes is edited (prose change)
 → support.chrome.1.notes is edited (prose change)
 → support.chrome.0.version_added is edited ("123" → "126")
 → support.chrome.0.notes is edited (prose change)
api.MLGraphBuilder.lesser:
 → support.chrome is edited ({"version_added":"122","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on GPUs on Windows."} → [{"version_added":"126","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on CPUs on Windows, ChromeOS and Linux."},{"version_added":"125","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on CPUs, GPUs and NPUs on macOS."},{"version_added":"122","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on GPUs and NPUs on Windows."}])
api.MLGraphBuilder.lesserOrEqual:
 → support.chrome is edited ({"version_added":"122","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on GPUs on Windows."} → [{"version_added":"126","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on CPUs on Windows, ChromeOS and Linux."},{"version_added":"125","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on CPUs, GPUs and NPUs on macOS."},{"version_added":"122","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on GPUs and NPUs on Windows."}])
api.MLGraphBuilder.linear:
 → support.chrome is edited ({"version_added":"122","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on GPUs on Windows."} → [{"version_added":"126","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on CPUs on Windows, ChromeOS and Linux."},{"version_added":"126","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on CPUs, GPUs and NPUs on macOS."},{"version_added":"122","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on GPUs and NPUs on Windows."}])
api.MLGraphBuilder.log:
 → support.chrome is edited (undefined → undefined)
 → support.chrome.1.version_added is edited ("121" → "123")
 → support.chrome.1.notes is edited (prose change)
 → support.chrome.0.version_added is edited ("123" → "126")
 → support.chrome.0.notes is edited (prose change)
api.MLGraphBuilder.logicalNot:
 → support.chrome is edited ({"version_added":"121","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on GPUs on Windows."} → [{"version_added":"128","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on CPUs, GPUs and NPUs on macOS."},{"version_added":"126","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on CPUs on Windows, ChromeOS and Linux."},{"version_added":"121","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on GPUs and NPUs on Windows."}])
api.MLGraphBuilder.lstm:
 → support.chrome is edited ({"version_added":"124","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on GPUs on Windows."} → [{"version_added":"129","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on CPUs on Windows, ChromeOS and Linux."},{"version_added":"125","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on GPUs and NPUs on Windows."}])
api.MLGraphBuilder.lstmCell:
 → support.chrome is edited ({"version_added":"124","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on GPUs on Windows."} → [{"version_added":"129","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on CPUs on Windows, ChromeOS and Linux."},{"version_added":"125","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on GPUs and NPUs on Windows."}])
api.MLGraphBuilder.matmul:
 → support.chrome is edited ({"version_added":"121","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on GPUs on Windows."} → [{"version_added":"126","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on CPUs on Windows, ChromeOS and Linux."},{"version_added":"126","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on CPUs, GPUs and NPUs on macOS."},{"version_added":"121","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on GPUs and NPUs on Windows."}])
api.MLGraphBuilder.max:
 → support.chrome.2.notes is edited (prose change)
 → support.chrome.1.notes is edited (prose change)
 → support.chrome.0.version_added is edited ("122" → "124")
 → support.chrome.0.notes is edited (prose change)
api.MLGraphBuilder.maxPool2d:
 → support.chrome.2.version_added is edited ("112" → "119")
 → support.chrome.2.notes is edited (prose change)
 → support.chrome.1.version_added is edited ("119" → "122")
 → support.chrome.1.notes is edited (prose change)
 → support.chrome.0.version_added is edited ("122" → "126")
 → support.chrome.0.notes is edited (prose change)
api.MLGraphBuilder.min:
 → support.chrome.2.notes is edited (prose change)
 → support.chrome.1.notes is edited (prose change)
 → support.chrome.0.version_added is edited ("122" → "124")
 → support.chrome.0.notes is edited (prose change)
api.MLGraphBuilder.mul:
 → support.chrome.2.notes is edited (prose change)
 → support.chrome.1.notes is edited (prose change)
 → support.chrome.0.version_added is edited ("122" → "124")
 → support.chrome.0.notes is edited (prose change)
api.MLGraphBuilder.neg:
 → support.chrome.2.notes is edited (prose change)
 → support.chrome.1.notes is edited (prose change)
 → support.chrome.0.version_added is edited ("123" → "127")
 → support.chrome.0.notes is edited (prose change)
api.MLGraphBuilder.pad:
 → support.chrome.2.notes is edited (prose change)
 → support.chrome.1.notes is edited (prose change)
 → support.chrome.0.version_added is edited ("123" → "129")
 → support.chrome.0.notes is edited (prose change)
api.MLGraphBuilder.pow:
 → support.chrome is edited (undefined → undefined)
 → support.chrome.1.version_added is edited ("119" → "122")
 → support.chrome.1.notes is edited (prose change)
 → support.chrome.0.version_added is edited ("122" → "124")
 → support.chrome.0.notes is edited (prose change)
api.MLGraphBuilder.prelu:
 → support.chrome.1.notes is edited (prose change)
 → support.chrome.0.notes is edited (prose change)
api.MLGraphBuilder.reciprocal:
 → support.chrome is edited ({"version_added":"121","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on GPUs on Windows."} → [{"version_added":"127","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on CPUs on Windows, ChromeOS and Linux."},{"version_added":"126","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on CPUs, GPUs and NPUs on macOS."},{"version_added":"121","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on GPUs and NPUs on Windows."}])
api.MLGraphBuilder.reduceL1:
 → support.chrome is edited ({"version_added":"121","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on GPUs on Windows."} → [{"version_added":"128","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on CPUs on Windows, ChromeOS and Linux."},{"version_added":"126","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on CPUs, GPUs and NPUs on macOS."},{"version_added":"121","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on GPUs and NPUs on Windows."}])
api.MLGraphBuilder.reduceL2:
 → support.chrome is edited ({"version_added":"121","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on GPUs on Windows."} → [{"version_added":"128","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on CPUs on Windows, ChromeOS and Linux."},{"version_added":"126","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on CPUs, GPUs and NPUs on macOS."},{"version_added":"121","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on GPUs and NPUs on Windows."}])
api.MLGraphBuilder.reduceLogSum:
 → support.chrome is edited ({"version_added":"121","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on GPUs on Windows."} → [{"version_added":"127","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on CPUs on Windows, ChromeOS and Linux."},{"version_added":"126","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on CPUs, GPUs and NPUs on macOS."},{"version_added":"121","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on GPUs and NPUs on Windows."}])
api.MLGraphBuilder.reduceLogSumExp:
 → support.chrome is edited ({"version_added":"121","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on GPUs on Windows."} → [{"version_added":"127","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on CPUs on Windows, ChromeOS and Linux."},{"version_added":"126","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on CPUs, GPUs and NPUs on macOS."},{"version_added":"121","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on GPUs and NPUs on Windows."}])
api.MLGraphBuilder.reduceMax:
 → support.chrome is edited ({"version_added":"121","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on GPUs on Windows."} → [{"version_added":"126","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on CPUs on Windows, ChromeOS and Linux."},{"version_added":"126","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on CPUs, GPUs and NPUs on macOS."},{"version_added":"121","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on GPUs and NPUs on Windows."}])
api.MLGraphBuilder.reduceMean:
 → support.chrome is edited ({"version_added":"121","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on GPUs on Windows."} → [{"version_added":"126","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on CPUs, GPUs and NPUs on macOS."},{"version_added":"121","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on GPUs and NPUs on Windows."},{"version_added":"120","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on CPUs on Windows, ChromeOS and Linux."}])
api.MLGraphBuilder.reduceMin:
 → support.chrome is edited ({"version_added":"121","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on GPUs on Windows."} → [{"version_added":"126","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on CPUs on Windows, ChromeOS and Linux."},{"version_added":"126","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on CPUs, GPUs and NPUs on macOS."},{"version_added":"121","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on GPUs and NPUs on Windows."}])
api.MLGraphBuilder.reduceProduct:
 → support.chrome is edited ({"version_added":"121","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on GPUs on Windows."} → [{"version_added":"126","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on CPUs on Windows, ChromeOS and Linux."},{"version_added":"126","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on CPUs, GPUs and NPUs on macOS."},{"version_added":"121","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on GPUs and NPUs on Windows."}])
api.MLGraphBuilder.reduceSum:
 → support.chrome is edited ({"version_added":"121","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on GPUs on Windows."} → [{"version_added":"126","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on CPUs on Windows, ChromeOS and Linux."},{"version_added":"126","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on CPUs, GPUs and NPUs on macOS."},{"version_added":"121","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on GPUs and NPUs on Windows."}])
api.MLGraphBuilder.reduceSumSquare:
 → support.chrome is edited ({"version_added":"121","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on GPUs on Windows."} → [{"version_added":"127","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on CPUs on Windows, ChromeOS and Linux."},{"version_added":"126","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on CPUs, GPUs and NPUs on macOS."},{"version_added":"121","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on GPUs and NPUs on Windows."}])
api.MLGraphBuilder.relu:
 → support.chrome.2.notes is edited (prose change)
 → support.chrome.1.notes is edited (prose change)
 → support.chrome.0.version_added is edited ("122" → "125")
 → support.chrome.0.notes is edited (prose change)
api.MLGraphBuilder.resample2d:
 → support.chrome.2.notes is edited (prose change)
 → support.chrome.1.notes is edited (prose change)
 → support.chrome.0.version_added is edited ("124" → "126")
 → support.chrome.0.notes is edited (prose change)
api.MLGraphBuilder.reshape:
 → support.chrome.2.notes is edited (prose change)
 → support.chrome.1.version_added is edited ("121" → "119")
 → support.chrome.1.notes is edited (prose change)
 → support.chrome.0.version_added is edited ("122" → "126")
 → support.chrome.0.notes is edited (prose change)
api.MLGraphBuilder.sigmoid:
 → support.chrome.2.notes is edited (prose change)
 → support.chrome.1.notes is edited (prose change)
 → support.chrome.0.version_added is edited ("123" → "126")
 → support.chrome.0.notes is edited (prose change)
api.MLGraphBuilder.sin:
 → support.chrome is edited (undefined → undefined)
 → support.chrome.1.version_added is edited ("121" → "123")
 → support.chrome.1.notes is edited (prose change)
 → support.chrome.0.version_added is edited ("123" → "126")
 → support.chrome.0.notes is edited (prose change)
api.MLGraphBuilder.slice:
 → support.chrome is edited (undefined → undefined)
 → support.chrome.1.version_added is edited ("116" → "120")
 → support.chrome.1.notes is edited (prose change)
 → support.chrome.0.version_added is edited ("120" → "126")
 → support.chrome.0.notes is edited (prose change)
api.MLGraphBuilder.softmax:
 → support.chrome.2.notes is edited (prose change)
 → support.chrome.1.notes is edited (prose change)
 → support.chrome.0.version_added is edited ("122" → "127")
 → support.chrome.0.notes is edited (prose change)
api.MLGraphBuilder.softplus:
 → support.chrome is edited ({"version_added":"122","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on GPUs on Windows."} → [{"version_added":"126","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on CPUs on Windows, ChromeOS and Linux."},{"version_added":"126","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on CPUs, GPUs and NPUs on macOS."},{"version_added":"122","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on GPUs and NPUs on Windows."}])
api.MLGraphBuilder.softsign:
 → support.chrome is edited ({"version_added":"123","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on GPUs on Windows."} → [{"version_added":"127","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on CPUs on Windows, ChromeOS and Linux."},{"version_added":"125","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on CPUs, GPUs and NPUs on macOS."},{"version_added":"123","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on GPUs and NPUs on Windows."}])
api.MLGraphBuilder.split:
 → support.chrome is edited (undefined → undefined)
 → support.chrome.1.version_added is edited ("116" → "120")
 → support.chrome.1.notes is edited (prose change)
 → support.chrome.0.version_added is edited ("120" → "130")
 → support.chrome.0.notes is edited (prose change)
api.MLGraphBuilder.sqrt:
 → support.chrome.2.version_added is edited ("121" → "122")
 → support.chrome.2.notes is edited (prose change)
 → support.chrome.1.version_added is edited ("122" → "126")
 → support.chrome.1.notes is edited (prose change)
 → support.chrome.0.version_added is edited ("123" → "127")
 → support.chrome.0.notes is edited (prose change)
api.MLGraphBuilder.sub:
 → support.chrome.2.notes is edited (prose change)
 → support.chrome.1.notes is edited (prose change)
 → support.chrome.0.version_added is edited ("122" → "124")
 → support.chrome.0.notes is edited (prose change)
api.MLGraphBuilder.tan:
 → support.chrome is edited ({"version_added":"121","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on GPUs on Windows."} → [{"version_added":"126","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on CPUs on Windows, ChromeOS and Linux."},{"version_added":"126","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on CPUs, GPUs and NPUs on macOS."},{"version_added":"121","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on GPUs and NPUs on Windows."}])
api.MLGraphBuilder.tanh:
 → support.chrome is edited (undefined → undefined)
 → support.chrome.1.version_added is edited ("116" → "121")
 → support.chrome.1.notes is edited (prose change)
 → support.chrome.0.version_added is edited ("121" → "126")
 → support.chrome.0.notes is edited (prose change)
api.MLGraphBuilder.transpose:
 → support.chrome.2.notes is edited (prose change)
 → support.chrome.1.notes is edited (prose change)
 → support.chrome.0.version_added is edited ("123" → "125")
 → support.chrome.0.notes is edited (prose change)
api.MLGraphBuilder.triangular:
 → support.chrome is edited ({"version_added":"124","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on GPUs on Windows."} → [{"version_added":"132","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on CPUs, GPUs and NPUs on macOS."},{"version_added":"128","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on CPUs on Windows, ChromeOS and Linux."},{"version_added":"126","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on GPUs and NPUs on Windows."}])
api.MLGraphBuilder.where:
 → support.chrome is edited ({"version_added":"122","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on GPUs on Windows."} → [{"version_added":"126","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on CPUs on Windows, ChromeOS and Linux."},{"version_added":"126","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on CPUs, GPUs and NPUs on macOS."},{"version_added":"122","flags":[{"name":"#web-machine-learning-neural-network","type":"preference","value_to_set":"Enabled"}],"notes":"Supported on GPUs and NPUs on Windows."}])
api.MLOperand:
 → support.chrome.notes is deleted
 → api.MLOperand.dataType is deleted
 → api.MLOperand.shape is deleted
 → api.MLOperand.MLNumber is added
api.Navigator.ml:
 → support.chrome.notes is deleted
api.WorkerNavigator.ml:
 → support.chrome.notes is deleted

@captainbrosset
Copy link
Contributor

@ibelem the BCD keys for this feature all have the "tags": ["web-features:webnn"] tag, which means that there's no changes needed over in the web-features repository. The WebNN feature in that repository will update on its own as soon as get the BCD version that contains this PR.

@ibelem
Copy link
Contributor Author

ibelem commented Nov 15, 2024

Thanks @foolip @Elchi3 for the feedback, removed all "Currently supported on ChromeOS, Linux, macOS and Windows only." from notes. PTAL

Thank you @captainbrosset for the clarification, great mechanism!

api/ML.json Outdated Show resolved Hide resolved
@ibelem
Copy link
Contributor Author

ibelem commented Nov 19, 2024

Thanks @Elchi3 , the notes property have been removed in c612f1e, please take a look.

Copy link
Member

@Elchi3 Elchi3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! LGTM 👍

@Elchi3 Elchi3 merged commit a2672b6 into mdn:main Nov 19, 2024
6 checks passed
@mdn-bot mdn-bot mentioned this pull request Nov 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
data:api Compat data for Web APIs. https://developer.mozilla.org/docs/Web/API
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants