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: Implement scatterElements operator in DirectML backend #48602

Merged
merged 1 commit into from
Oct 14, 2024

Commits on Oct 14, 2024

  1. WebNN: Implement scatterElements operator in DirectML backend

    The `scatterElements` operator is proposed by WebML WG [1] for
    supporting popular transformer-based models.
    
    This CL adds the IDL and mojo definitions of scatterElements, and
    implements it in the DirectML backend by mapping to
    `DML_OPERATOR_SCATTER` [2].
    
    This CL also adds the `scatterElements` validation and conformance tests
    into WPT.
    
    [1]: webmachinelearning/webnn#375 (comment)
    [2]: https://learn.microsoft.com/en-us/windows/win32/api/directml/ns-directml-dml_scatter_operator_desc
    
    Bug: 370536101,370538328
    Change-Id: Ifb73bed5eb05cb919b106b4aaea5127ec099edb2
    Cq-Include-Trybots: luci.chromium.try:win11-blink-rel, mac14.arm64-blink-rel, mac14-blink-rel, mac15.arm64-blink-rel, mac15-blink-rel, linux-blink-rel
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5921136
    Reviewed-by: Alex Gough <ajgo@chromium.org>
    Reviewed-by: Weizhong Xia <weizhong@google.com>
    Auto-Submit: ningxin hu <ningxin.hu@intel.com>
    Commit-Queue: ningxin hu <ningxin.hu@intel.com>
    Commit-Queue: Weizhong Xia <weizhong@google.com>
    Reviewed-by: Rafael Cintron <rafael.cintron@microsoft.com>
    Reviewed-by: Austin Sullivan <asully@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1368312}
    huningxin authored and chromium-wpt-export-bot committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    74fc762 View commit details
    Browse the repository at this point in the history