[WebNN] Only limit int32 input for dequantizeLinear for ORT default CPU EP [chromium/src : main]

0 views
Skip to first unread message

Wang, Wei4 (Gerrit)

unread,
Feb 27, 2026, 8:08:44 PM (yesterday) Feb 27
to Hu, Ningxin, Miao, Bin, Chromium LUCI CQ, AyeAye, chromium...@chromium.org, Jiewei Qian, blink-...@chromium.org, ipc-securi...@chromium.org
Attention needed from Hu, Ningxin

Wang, Wei4 added 1 comment

Patchset-level comments
File-level comment, Patchset 2 (Latest):
Wang, Wei4 . resolved

PTAL, thanks.

Open in Gerrit

Related details

Attention is currently required from:
  • Hu, Ningxin
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Idd8baaee12f20c2ace07ba49a34f445f0d9692d0
Gerrit-Change-Number: 7616747
Gerrit-PatchSet: 2
Gerrit-Owner: Wang, Wei4 <wei4...@intel.com>
Gerrit-Reviewer: Hu, Ningxin <ningx...@intel.com>
Gerrit-Reviewer: Wang, Wei4 <wei4...@intel.com>
Gerrit-CC: Jiewei Qian <q...@chromium.org>
Gerrit-CC: Miao, Bin <bin....@intel.com>
Gerrit-Attention: Hu, Ningxin <ningx...@intel.com>
Gerrit-Comment-Date: Sat, 28 Feb 2026 01:08:38 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Hu, Ningxin (Gerrit)

unread,
Feb 27, 2026, 8:40:16 PM (yesterday) Feb 27
to Wang, Wei4, Miao, Bin, Chromium LUCI CQ, AyeAye, chromium...@chromium.org, Jiewei Qian, blink-...@chromium.org, ipc-securi...@chromium.org
Attention needed from Wang, Wei4

Hu, Ningxin added 1 comment

Commit Message
Line 14, Patchset 2 (Latest):This CL also makes input and zeroPoint of dequantizeLinear share
the same OpSupportLimits item, because their limitations are same
for different backends after CL[2] is merged.
Hu, Ningxin . unresolved

Does it make sense to have a separate CL for this change? That would make this CL focusing on ORT backend change.

Open in Gerrit

Related details

Attention is currently required from:
  • Wang, Wei4
Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement is not satisfiedCode-Owners
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    • requirement is not satisfiedReview-Enforcement
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: Idd8baaee12f20c2ace07ba49a34f445f0d9692d0
    Gerrit-Change-Number: 7616747
    Gerrit-PatchSet: 2
    Gerrit-Owner: Wang, Wei4 <wei4...@intel.com>
    Gerrit-Reviewer: Hu, Ningxin <ningx...@intel.com>
    Gerrit-Reviewer: Wang, Wei4 <wei4...@intel.com>
    Gerrit-CC: Jiewei Qian <q...@chromium.org>
    Gerrit-CC: Miao, Bin <bin....@intel.com>
    Gerrit-Attention: Wang, Wei4 <wei4...@intel.com>
    Gerrit-Comment-Date: Sat, 28 Feb 2026 01:40:10 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Wang, Wei4 (Gerrit)

    unread,
    Feb 27, 2026, 8:45:30 PM (yesterday) Feb 27
    to Hu, Ningxin, Miao, Bin, Chromium LUCI CQ, AyeAye, chromium...@chromium.org, Jiewei Qian, blink-...@chromium.org, ipc-securi...@chromium.org
    Attention needed from Hu, Ningxin

    Wang, Wei4 added 1 comment

    Commit Message
    Line 14, Patchset 2 (Latest):This CL also makes input and zeroPoint of dequantizeLinear share
    the same OpSupportLimits item, because their limitations are same
    for different backends after CL[2] is merged.
    Hu, Ningxin . unresolved

    Does it make sense to have a separate CL for this change? That would make this CL focusing on ORT backend change.

    Wang, Wei4

    sure, I will separate the chages.

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Hu, Ningxin
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement is not satisfiedCode-Owners
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    • requirement is not satisfiedReview-Enforcement
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: Idd8baaee12f20c2ace07ba49a34f445f0d9692d0
    Gerrit-Change-Number: 7616747
    Gerrit-PatchSet: 2
    Gerrit-Owner: Wang, Wei4 <wei4...@intel.com>
    Gerrit-Reviewer: Hu, Ningxin <ningx...@intel.com>
    Gerrit-Reviewer: Wang, Wei4 <wei4...@intel.com>
    Gerrit-CC: Jiewei Qian <q...@chromium.org>
    Gerrit-CC: Miao, Bin <bin....@intel.com>
    Gerrit-Attention: Hu, Ningxin <ningx...@intel.com>
    Gerrit-Comment-Date: Sat, 28 Feb 2026 01:45:23 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Hu, Ningxin <ningx...@intel.com>
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Wang, Wei4 (Gerrit)

    unread,
    Feb 27, 2026, 10:22:24 PM (22 hours ago) Feb 27
    to Hu, Ningxin, Miao, Bin, Chromium LUCI CQ, AyeAye, chromium...@chromium.org, Jiewei Qian, blink-...@chromium.org, ipc-securi...@chromium.org
    Attention needed from Hu, Ningxin

    Wang, Wei4 added 2 comments

    Patchset-level comments
    File-level comment, Patchset 4 (Latest):
    Wang, Wei4 . resolved

    PTAL again, thanks.

    Commit Message
    Line 14, Patchset 2:This CL also makes input and zeroPoint of dequantizeLinear share

    the same OpSupportLimits item, because their limitations are same
    for different backends after CL[2] is merged.
    Hu, Ningxin . resolved

    Does it make sense to have a separate CL for this change? That would make this CL focusing on ORT backend change.

    Wang, Wei4

    sure, I will separate the chages.

    Wang, Wei4

    Done

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Hu, Ningxin
    Submit Requirements:
      • requirement satisfiedCode-Coverage
      • requirement is not satisfiedCode-Owners
      • requirement is not satisfiedCode-Review
      • requirement is not satisfiedReview-Enforcement
      Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
      Gerrit-MessageType: comment
      Gerrit-Project: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: Idd8baaee12f20c2ace07ba49a34f445f0d9692d0
      Gerrit-Change-Number: 7616747
      Gerrit-PatchSet: 4
      Gerrit-Owner: Wang, Wei4 <wei4...@intel.com>
      Gerrit-Reviewer: Hu, Ningxin <ningx...@intel.com>
      Gerrit-Reviewer: Wang, Wei4 <wei4...@intel.com>
      Gerrit-CC: Jiewei Qian <q...@chromium.org>
      Gerrit-CC: Miao, Bin <bin....@intel.com>
      Gerrit-Attention: Hu, Ningxin <ningx...@intel.com>
      Gerrit-Comment-Date: Sat, 28 Feb 2026 03:22:17 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      Comment-In-Reply-To: Hu, Ningxin <ningx...@intel.com>
      Comment-In-Reply-To: Wang, Wei4 <wei4...@intel.com>
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Hu, Ningxin (Gerrit)

      unread,
      3:48 AM (17 hours ago) 3:48 AM
      to Wang, Wei4, Rafael Cintron, Dwayne Robinson, Miao, Bin, Chromium LUCI CQ, AyeAye, chromium...@chromium.org, Jiewei Qian, blink-...@chromium.org, ipc-securi...@chromium.org
      Attention needed from Rafael Cintron and Wang, Wei4

      Hu, Ningxin added 5 comments

      Patchset-level comments
      Hu, Ningxin . resolved
      File services/webnn/ort/context_impl_ort.h
      Line 68, Patchset 4 (Latest): bool dequantizeLinear_support_int32);
      Hu, Ningxin . unresolved
      ```suggestion
      bool dequantize_linear_input_support_int32);
      ```
      Line 47, Patchset 4 (Latest): bool dequantizeLinear_support_int32,
      Hu, Ningxin . unresolved
      ```suggestion
      bool dequantize_linear_input_support_int32,
      ```
      File services/webnn/ort/context_impl_ort.cc
      Line 78, Patchset 4 (Latest): bool is_default_CPU_EP_first_selected = Environment::IsDefaultCpuEpDevice(
      Hu, Ningxin . unresolved
      ```suggestion
      bool dequantize_linear_input_support_int32= !Environment::IsDefaultCpuEpDevice(
      ```
      Line 209, Patchset 4 (Latest): {dequantizeLinear_support_int32 ? kInts4To8Int32
      : DataTypeConstraint::kInts4ToInts8,
      Hu, Ningxin . unresolved

      This change seems to be unnecessary.

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Rafael Cintron
      • Wang, Wei4
      Submit Requirements:
        • requirement satisfiedCode-Coverage
        • requirement is not satisfiedCode-Owners
        • requirement is not satisfiedCode-Review
        • requirement is not satisfiedNo-Unresolved-Comments
        • requirement is not satisfiedReview-Enforcement
        Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
        Gerrit-MessageType: comment
        Gerrit-Project: chromium/src
        Gerrit-Branch: main
        Gerrit-Change-Id: Idd8baaee12f20c2ace07ba49a34f445f0d9692d0
        Gerrit-Change-Number: 7616747
        Gerrit-PatchSet: 4
        Gerrit-Owner: Wang, Wei4 <wei4...@intel.com>
        Gerrit-Reviewer: Hu, Ningxin <ningx...@intel.com>
        Gerrit-Reviewer: Rafael Cintron <rafael....@microsoft.com>
        Gerrit-Reviewer: Wang, Wei4 <wei4...@intel.com>
        Gerrit-CC: Dwayne Robinson <dwa...@microsoft.com>
        Gerrit-CC: Jiewei Qian <q...@chromium.org>
        Gerrit-CC: Miao, Bin <bin....@intel.com>
        Gerrit-Attention: Rafael Cintron <rafael....@microsoft.com>
        Gerrit-Attention: Wang, Wei4 <wei4...@intel.com>
        Gerrit-Comment-Date: Sat, 28 Feb 2026 08:48:01 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: No
        satisfied_requirement
        unsatisfied_requirement
        open
        diffy

        Wang, Wei4 (Gerrit)

        unread,
        4:00 AM (17 hours ago) 4:00 AM
        to Rafael Cintron, Dwayne Robinson, Hu, Ningxin, Miao, Bin, Chromium LUCI CQ, AyeAye, chromium...@chromium.org, Jiewei Qian, blink-...@chromium.org, ipc-securi...@chromium.org
        Attention needed from Hu, Ningxin and Rafael Cintron

        Wang, Wei4 added 1 comment

        File services/webnn/ort/context_impl_ort.cc
        Line 209, Patchset 4 (Latest): {dequantizeLinear_support_int32 ? kInts4To8Int32
        : DataTypeConstraint::kInts4ToInts8,
        Hu, Ningxin . unresolved

        This change seems to be unnecessary.

        Wang, Wei4

        According to WebNN spec, zeroPoint has same "allowed data types" with input, so is it better to keep them same?

        Open in Gerrit

        Related details

        Attention is currently required from:
        • Hu, Ningxin
        • Rafael Cintron
        Gerrit-Attention: Hu, Ningxin <ningx...@intel.com>
        Gerrit-Comment-Date: Sat, 28 Feb 2026 09:00:08 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: No
        Comment-In-Reply-To: Hu, Ningxin <ningx...@intel.com>
        satisfied_requirement
        unsatisfied_requirement
        open
        diffy

        Wang, Wei4 (Gerrit)

        unread,
        5:14 AM (16 hours ago) 5:14 AM
        to Rafael Cintron, Dwayne Robinson, Hu, Ningxin, Miao, Bin, Chromium LUCI CQ, AyeAye, chromium...@chromium.org, Jiewei Qian, blink-...@chromium.org, ipc-securi...@chromium.org
        Attention needed from Hu, Ningxin and Rafael Cintron

        Wang, Wei4 added 1 comment

        File services/webnn/ort/context_impl_ort.cc
        Line 209, Patchset 4 (Latest): {dequantizeLinear_support_int32 ? kInts4To8Int32
        : DataTypeConstraint::kInts4ToInts8,
        Hu, Ningxin . unresolved

        This change seems to be unnecessary.

        Wang, Wei4

        According to WebNN spec, zeroPoint has same "allowed data types" with input, so is it better to keep them same?

        Wang, Wei4

        From the implementation perspective, they can share the same OpSupportLimits item if they are same, just like the changes in CL: https://chromium-review.googlesource.com/c/chromium/src/+/7618977

        Gerrit-Comment-Date: Sat, 28 Feb 2026 10:14:49 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: No
        Comment-In-Reply-To: Hu, Ningxin <ningx...@intel.com>
        Comment-In-Reply-To: Wang, Wei4 <wei4...@intel.com>
        satisfied_requirement
        unsatisfied_requirement
        open
        diffy
        Reply all
        Reply to author
        Forward
        0 new messages