[w3ctag/design-reviews] Updated review of WebNN API (Issue #933)

(extracted from https://github.com/w3ctag/design-reviews/issues/771#issuecomment-1911927573)

I'm requesting an updated TAG review of WebNN API - previous TAG review: https://github.com/w3ctag/design-reviews/issues/771

Since the [initial Candidate Recommendation Snapshot](https://www.w3.org/TR/2023/CR-webnn-20230330/) and the previous TAG review, the Working Group has gathered further [implementation experience](https://webmachinelearning.github.io/webnn-status/) and added new operations and data types needed for well-known https://github.com/webmachinelearning/webnn/issues/375. In addition, the group has removed select features informed by this implementation experience: higher-level operations that can be expressed in terms of lower-level primitives in a performant manner, and support for synchronous execution. The group has also updated the specification to use modern authoring conventions to improve interoperability and precision of normative definitions and is developing a new feature, a https://github.com/webmachinelearning/webnn/issues/482, to improve performance and interoperability between the WebNN, WebGPU APIs and purpose-built hardware for ML.

We have also removed support for synchronous execution per TAG's guidance (removal discussed in https://github.com/w3ctag/design-reviews/issues/531 and moving toward JSPI that is coming finally.

  - Explainer¹ (minimally containing user needs and example code): https://github.com/webmachinelearning/webnn/blob/main/explainer.md
  - Specification URL: https://www.w3.org/TR/webnn/
  - Tests: https://github.com/web-platform-tests/wpt/tree/master/webnn
  - User research: N/A
  - Security and Privacy self-review²: https://github.com/webmachinelearning/webnn/issues/119
  - GitHub repo (if you prefer feedback filed there): https://github.com/webmachinelearning/webnn/
  - Primary contacts (and their relationship to the specification):
      - Anssi Kostiainen, @anssiko, Intel (chair)
      - Dominique Hazael-Massieux, @dontcallmeDOM, W3C (staff contact)
      - Ningxin Hu, @huningxin, Intel (editor)
      - Dwayne Robinson, @fdwr, Microsoft (editor)
  - Organization(s)/project(s) driving the specification: W3C Web Machine Learning Working Group
  - Key pieces of existing multi-stakeholder (e.g. developers, implementers, civil society) support, review or discussion of this specification:
    - Chromium comments: https://chromestatus.com/feature/5738583487938560 (in development)
    - Mozilla comments: N/A
    - WebKit comments: N/A (but Apple recently joined the WG)

Further details:

  - [x] I have reviewed the TAG's [Web Platform Design Principles](https://www.w3.org/TR/design-principles/)
  - Relevant time constraints or deadlines: expecting to republish as Candidate Recommendation Snapshot in Q1 2024
  - The group where the work on this specification is currently being done: W3C Web Machine Learning Working Group
  - Major unresolved issues with or opposition to this specification:
  - This work is being funded by:

You should also know that...

[please tell us anything you think is relevant to this review]

We'd prefer the TAG provide feedback as open issues in our GitHub repo for **each point of feedback**


-- 
Reply to this email directly or view it on GitHub:
https://github.com/w3ctag/design-reviews/issues/933
You are receiving this because you are subscribed to this thread.

Message ID: <w3ctag/design-reviews/issues/933@github.com>

Received on Thursday, 15 February 2024 15:19:53 UTC