WebNN: a single big CL to prototype XNNPACK backend [chromium/src : main]

1 view
Skip to first unread message

ningxin hu (Gerrit)

unread,
Jun 1, 2022, 10:12:45 PM6/1/22
to blink-revie...@chromium.org, blink-...@chromium.org, jmedle...@chromium.org, Honglin Yu, Junwei Fu, Jonathan Bingham, Rafael Cintron, chromium...@chromium.org, Kentaro Hara

Attention is currently required from: Honglin Yu, Junwei Fu.

View Change

    To view, visit change 3684745. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I40141329eb339a09b51ab997769877135f4f056a
    Gerrit-Change-Number: 3684745
    Gerrit-PatchSet: 4
    Gerrit-Owner: ningxin hu <ningx...@intel.com>
    Gerrit-Reviewer: Honglin Yu <hong...@chromium.org>
    Gerrit-Reviewer: Junwei Fu <junw...@intel.com>
    Gerrit-CC: Jonathan Bingham <bing...@google.com>
    Gerrit-CC: Kentaro Hara <har...@chromium.org>
    Gerrit-CC: Rafael Cintron <rafael....@microsoft.com>
    Gerrit-Attention: Junwei Fu <junw...@intel.com>
    Gerrit-Attention: Honglin Yu <hong...@chromium.org>
    Gerrit-Comment-Date: Thu, 02 Jun 2022 02:12:32 +0000
    Gerrit-HasComments: No
    Gerrit-Has-Labels: No
    Gerrit-MessageType: comment

    ningxin hu (Gerrit)

    unread,
    Jun 1, 2022, 10:20:41 PM6/1/22
    to blink-revie...@chromium.org, blink-...@chromium.org, jmedle...@chromium.org, Robert Ogden, Alex Gough, Honglin Yu, Junwei Fu, Jonathan Bingham, Rafael Cintron, chromium...@chromium.org, Kentaro Hara

    Attention is currently required from: Honglin Yu, Junwei Fu.

    View Change

    1 comment:

    To view, visit change 3684745. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I40141329eb339a09b51ab997769877135f4f056a
    Gerrit-Change-Number: 3684745
    Gerrit-PatchSet: 4
    Gerrit-Owner: ningxin hu <ningx...@intel.com>
    Gerrit-Reviewer: Honglin Yu <hong...@chromium.org>
    Gerrit-Reviewer: Junwei Fu <junw...@intel.com>
    Gerrit-CC: Alex Gough <aj...@google.com>
    Gerrit-CC: Jonathan Bingham <bing...@google.com>
    Gerrit-CC: Kentaro Hara <har...@chromium.org>
    Gerrit-CC: Rafael Cintron <rafael....@microsoft.com>
    Gerrit-CC: Robert Ogden <rober...@chromium.org>
    Gerrit-Attention: Junwei Fu <junw...@intel.com>
    Gerrit-Attention: Honglin Yu <hong...@chromium.org>
    Gerrit-Comment-Date: Thu, 02 Jun 2022 02:20:32 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Gerrit-MessageType: comment

    Junwei Fu (Gerrit)

    unread,
    Jun 2, 2022, 3:06:50 AM6/2/22
    to ningxin hu, blink-revie...@chromium.org, blink-...@chromium.org, jmedle...@chromium.org, Robert Ogden, Alex Gough, Honglin Yu, Jonathan Bingham, Rafael Cintron, chromium...@chromium.org, Kentaro Hara

    Attention is currently required from: Honglin Yu, ningxin hu.

    View Change

    10 comments:

    • Patchset:

      • Patch Set #4:

        Exciting implementation, look forward to using WebNN API in browser.

    • File third_party/blink/renderer/modules/ml/ml_context_xnnpack.h:

      • Patch Set #4, Line 20: MLContextXnnpack(const unsigned int num_threads, ML* ml);

        "unsigned int" doesn't need "const" that is temporary value.

    • File third_party/blink/renderer/modules/ml/ml_context_xnnpack.cc:

    • File third_party/blink/renderer/modules/ml/webnn/ml_graph_builder.cc:

      • Patch Set #4, Line 583: Vector<int32_t> output_shape;

        Commbine L.584 - 587 to one line
        Vector<int32_t> output_shape = nchw? {} : {};

      • Patch Set #4, Line 592: pool2d->Inputs()[0] = input;

        Does use push_back instead of array like
        pool2d->Inputs().reserve(1);
        pool2d->Inputs().push_back(input);
        or wrap it the two line as a function in the MLOperator.h like
        pool2d->SetInputs({input});

      • Patch Set #4, Line 598: pool2d->Outputs().resize(1);

        Ditto.

    • File third_party/blink/renderer/modules/ml/webnn/ml_graph_xnnpack.h:

    • File third_party/blink/renderer/modules/ml/webnn/ml_graph_xnnpack.cc:

    • File third_party/blink/renderer/modules/ml/webnn/ml_operator.cc:

      • Patch Set #4, Line 7: #include "third_party/blink/renderer/modules/ml/ml_context.h"

        Remove the unused "ml_context.h" and "ml_graph.h"

    To view, visit change 3684745. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I40141329eb339a09b51ab997769877135f4f056a
    Gerrit-Change-Number: 3684745
    Gerrit-PatchSet: 4
    Gerrit-Owner: ningxin hu <ningx...@intel.com>
    Gerrit-Reviewer: Honglin Yu <hong...@chromium.org>
    Gerrit-Reviewer: Junwei Fu <junw...@intel.com>
    Gerrit-CC: Alex Gough <aj...@google.com>
    Gerrit-CC: Jonathan Bingham <bing...@google.com>
    Gerrit-CC: Kentaro Hara <har...@chromium.org>
    Gerrit-CC: Rafael Cintron <rafael....@microsoft.com>
    Gerrit-CC: Robert Ogden <rober...@chromium.org>
    Gerrit-Attention: ningxin hu <ningx...@intel.com>
    Gerrit-Attention: Honglin Yu <hong...@chromium.org>
    Gerrit-Comment-Date: Thu, 02 Jun 2022 07:06:42 +0000

    Robert Ogden (Gerrit)

    unread,
    Jun 2, 2022, 2:20:07 PM6/2/22
    to ningxin hu, blink-revie...@chromium.org, blink-...@chromium.org, jmedle...@chromium.org, Alex Gough, Honglin Yu, Junwei Fu, Jonathan Bingham, Rafael Cintron, chromium...@chromium.org, Kentaro Hara

    Attention is currently required from: Honglin Yu, ningxin hu.

    View Change

    1 comment:

    • Commit Message:

      • Patch Set #4, Line 11: In particular, on Linux, this prototype initializes XNNPACK before entering sandbox because XNNPACK requires to access /proc/cpuinfo that is not allowed within sandbox.

        can you point me at where this is done in this CL? I'm trying to understand it

    To view, visit change 3684745. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I40141329eb339a09b51ab997769877135f4f056a
    Gerrit-Change-Number: 3684745
    Gerrit-PatchSet: 4
    Gerrit-Owner: ningxin hu <ningx...@intel.com>
    Gerrit-Reviewer: Honglin Yu <hong...@chromium.org>
    Gerrit-Reviewer: Junwei Fu <junw...@intel.com>
    Gerrit-CC: Alex Gough <aj...@chromium.org>
    Gerrit-CC: Jonathan Bingham <bing...@google.com>
    Gerrit-CC: Kentaro Hara <har...@chromium.org>
    Gerrit-CC: Rafael Cintron <rafael....@microsoft.com>
    Gerrit-CC: Robert Ogden <rober...@chromium.org>
    Gerrit-Attention: ningxin hu <ningx...@intel.com>
    Gerrit-Attention: Honglin Yu <hong...@chromium.org>
    Gerrit-Comment-Date: Thu, 02 Jun 2022 18:20:00 +0000

    Alex Gough (Gerrit)

    unread,
    Jun 2, 2022, 2:45:53 PM6/2/22
    to ningxin hu, blink-revie...@chromium.org, blink-...@chromium.org, jmedle...@chromium.org, Alex Gough, Robert Ogden, Honglin Yu, Junwei Fu, Jonathan Bingham, Rafael Cintron, chromium...@chromium.org, Kentaro Hara

    Attention is currently required from: Honglin Yu, ningxin hu.

    View Change

    3 comments:

    • Patchset:

      • Patch Set #4:

        There's a lot of size/shape manipulation going on here - it would be good to have a better story about how these sizes are validated. I've pointed to a couple of locations but this should be considered throughout - a good approach is to use checked casts, spans & base numerics.

    • File third_party/blink/renderer/modules/ml/webnn/ml_graph_xnnpack.cc:

      • Patch Set #4, Line 105: return elements * GetBytesPerElement(operand->Type());

        can this overflow?

      • Patch Set #4, Line 126: static_cast<uint32_t>(named_outputs.size() + inputs.size());

        can this overflow? might be good to use checked casts for web-content controlled sizes (throughout)

    To view, visit change 3684745. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I40141329eb339a09b51ab997769877135f4f056a
    Gerrit-Change-Number: 3684745
    Gerrit-PatchSet: 4
    Gerrit-Owner: ningxin hu <ningx...@intel.com>
    Gerrit-Reviewer: Honglin Yu <hong...@chromium.org>
    Gerrit-Reviewer: Junwei Fu <junw...@intel.com>
    Gerrit-CC: Alex Gough <aj...@chromium.org>
    Gerrit-CC: Jonathan Bingham <bing...@google.com>
    Gerrit-CC: Kentaro Hara <har...@chromium.org>
    Gerrit-CC: Rafael Cintron <rafael....@microsoft.com>
    Gerrit-CC: Robert Ogden <rober...@chromium.org>
    Gerrit-Attention: ningxin hu <ningx...@intel.com>
    Gerrit-Attention: Honglin Yu <hong...@chromium.org>
    Gerrit-Comment-Date: Thu, 02 Jun 2022 18:45:45 +0000

    Honglin Yu (Gerrit)

    unread,
    Jun 3, 2022, 1:57:06 AM6/3/22
    to ningxin hu, blink-revie...@chromium.org, blink-...@chromium.org, jmedle...@chromium.org, Alex Gough, Robert Ogden, Junwei Fu, Jonathan Bingham, Rafael Cintron, chromium...@chromium.org, Kentaro Hara

    Attention is currently required from: ningxin hu.

    View Change

    10 comments:

    • Patchset:

      • Patch Set #4:

        Thanks for the work! Left a few comments. I feel that maybe we should put the real impl code into somewhere like //components or //third_party/webnn let the blink part mainly focus on web interfaces, especially considering that the code will keep growing when more and more OPs are added.

    • File third_party/blink/renderer/modules/ml/ml_context_xnnpack.cc:

      • Patch Set #4, Line 21: instance_ = refptr.get();

        nit: it feels better to set `instance_` in the constructor by `instance_ = this`.

      • Patch Set #4, Line 17:

          static scoped_refptr<SharedXnnpackContext> GetInstance(size_t num_threads) {
        if (instance_ == nullptr) {
        scoped_refptr<SharedXnnpackContext> refptr =
        base::MakeRefCounted<SharedXnnpackContext>(num_threads);
        instance_ = refptr.get();
        return refptr;
        } else {
        return base::WrapRefCounted(instance_);
        }
        }

        We may need multiple `SharedXnnpackContext` with different configurations (i.e. num_threads here) right? Maybe we need a dictionary of it.

      • Patch Set #4, Line 63: WTF::MutexLocker locker(mutex_);

        Is it necessary? i.e. is it possible that the destructor is called more than once? (Would someone explicit call it? Would it be an error to do so?)

      • Patch Set #4, Line 67: pthreadpool_

        If the destructor can be called twice, setting `pthreadpool_` to nullptr is needed.

      • Patch Set #4, Line 75: WTF::Mutex mutex_;

        Just want to point out that, normally TaskRunner, PostTask and SequenceChecker etc. are prefered than directlly using mutex.

        Also, even when a mutex is needed, it seems `base::Lock` is prefered now: https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/platform/wtf/threading_primitives.h;l=55

    • File third_party/blink/renderer/modules/ml/webnn/ml_graph.h:

    • File third_party/blink/renderer/modules/ml/webnn/ml_graph_builder.cc:

      • Patch Set #4, Line 40: rank_a - i - 1

        this may be negative?

      • Patch Set #4, Line 58:

        int32_t out_size = (input_size + stride - 1) / stride;
        int32_t dilated_filter = (filter_size - 1) * dilation + 1;
        int32_t needed_input = (out_size - 1) * stride + dilated_filter;

        Also highlight some places that may overflow.

      • Patch Set #4, Line 62: needed_input - input_size

        this can also overflow

    To view, visit change 3684745. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I40141329eb339a09b51ab997769877135f4f056a
    Gerrit-Change-Number: 3684745
    Gerrit-PatchSet: 4
    Gerrit-Owner: ningxin hu <ningx...@intel.com>
    Gerrit-Reviewer: Honglin Yu <hong...@chromium.org>
    Gerrit-Reviewer: Junwei Fu <junw...@intel.com>
    Gerrit-CC: Alex Gough <aj...@chromium.org>
    Gerrit-CC: Jonathan Bingham <bing...@google.com>
    Gerrit-CC: Kentaro Hara <har...@chromium.org>
    Gerrit-CC: Rafael Cintron <rafael....@microsoft.com>
    Gerrit-CC: Robert Ogden <rober...@chromium.org>
    Gerrit-Attention: ningxin hu <ningx...@intel.com>
    Gerrit-Comment-Date: Fri, 03 Jun 2022 05:56:57 +0000

    ningxin hu (Gerrit)

    unread,
    Jun 3, 2022, 11:24:32 AM6/3/22
    to blink-revie...@chromium.org, blink-...@chromium.org, jmedle...@chromium.org, Alex Gough, Robert Ogden, Honglin Yu, Junwei Fu, Jonathan Bingham, Rafael Cintron, chromium...@chromium.org, Kentaro Hara

    Attention is currently required from: Robert Ogden.

    View Change

    2 comments:

    • Commit Message:

      • Patch Set #4, Line 11: In particular, on Linux, this prototype initializes XNNPACK before entering sandbox because XNNPACK requires to access /proc/cpuinfo that is not allowed within sandbox.

        can you point me at where this is done in this CL? I'm trying to understand it

    To view, visit change 3684745. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I40141329eb339a09b51ab997769877135f4f056a
    Gerrit-Change-Number: 3684745
    Gerrit-PatchSet: 4
    Gerrit-Owner: ningxin hu <ningx...@intel.com>
    Gerrit-Reviewer: Honglin Yu <hong...@chromium.org>
    Gerrit-Reviewer: Junwei Fu <junw...@intel.com>
    Gerrit-CC: Alex Gough <aj...@chromium.org>
    Gerrit-CC: Jonathan Bingham <bing...@google.com>
    Gerrit-CC: Kentaro Hara <har...@chromium.org>
    Gerrit-CC: Rafael Cintron <rafael....@microsoft.com>
    Gerrit-CC: Robert Ogden <rober...@chromium.org>
    Gerrit-Attention: Robert Ogden <rober...@chromium.org>
    Gerrit-Comment-Date: Fri, 03 Jun 2022 15:24:18 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Robert Ogden <rober...@chromium.org>
    Gerrit-MessageType: comment

    ningxin hu (Gerrit)

    unread,
    Jun 5, 2022, 10:35:34 PM6/5/22
    to blink-revie...@chromium.org, blink-...@chromium.org, jmedle...@chromium.org, Robert Ogden, Alex Gough, Honglin Yu, Junwei Fu, Jonathan Bingham, Rafael Cintron, chromium...@chromium.org, Kentaro Hara

    Attention is currently required from: Robert Ogden.

    View Change

    1 comment:

    To view, visit change 3684745. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I40141329eb339a09b51ab997769877135f4f056a
    Gerrit-Change-Number: 3684745
    Gerrit-PatchSet: 4
    Gerrit-Owner: ningxin hu <ningx...@intel.com>
    Gerrit-Reviewer: Alex Gough <aj...@chromium.org>
    Gerrit-Reviewer: Honglin Yu <hong...@chromium.org>
    Gerrit-Reviewer: Junwei Fu <junw...@intel.com>
    Gerrit-Reviewer: Robert Ogden <rober...@chromium.org>
    Gerrit-CC: Jonathan Bingham <bing...@google.com>
    Gerrit-CC: Kentaro Hara <har...@chromium.org>
    Gerrit-CC: Rafael Cintron <rafael....@microsoft.com>
    Gerrit-Attention: Robert Ogden <rober...@chromium.org>
    Gerrit-Comment-Date: Mon, 06 Jun 2022 02:35:26 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Gerrit-MessageType: comment

    ningxin hu (Gerrit)

    unread,
    Jun 6, 2022, 7:28:59 AM6/6/22
    to blink-revie...@chromium.org, blink-...@chromium.org, jmedle...@chromium.org, Robert Ogden, Alex Gough, Honglin Yu, Junwei Fu, Jonathan Bingham, Rafael Cintron, chromium...@chromium.org, Kentaro Hara

    Attention is currently required from: Alex Gough, Honglin Yu, Junwei Fu, Robert Ogden.

    View Change

    23 comments:

    • Patchset:

      • Patch Set #4:

        There's a lot of size/shape manipulation going on here - it would be good to have a better story abo […]

        That's great suggestion. I'll look into base numerics and apply to the implementation.

      • Patch Set #4:

        Thanks for the work! Left a few comments. […]

        Besides xnnpack backend, the implementation of ops of `MLGraphBuilder` focuses on inputs validation and shapes calculation. As they are (and to be) documented in WebNN spec, the blink implementation seems straight forward to me. If there is a demand to be shared with other components, I'll move it. Please let me know.

    • Patchset:

      • Patch Set #5:

        Fixed Honglin and Junwei's comments except shape calculation by using base numerics (also Alex's comment). I'll fix that in the following patchset.

    • File third_party/blink/renderer/modules/ml/ml_context_xnnpack.h:

      • Patch Set #4, Line 20: MLContextXnnpack(const unsigned int num_threads, ML* ml);

        "unsigned int" doesn't need "const" that is temporary value.

      • The num_threads support is removed.

    • File third_party/blink/renderer/modules/ml/ml_context_xnnpack.cc:

      • Patch Set #4, Line 21: instance_ = refptr.get();

        nit: it feels better to set `instance_` in the constructor by `instance_ = this`.

      • Ack

      • Patch Set #4, Line 17:

          static scoped_refptr<SharedXnnpackContext> GetInstance(size_t num_threads) {
        if (instance_ == nullptr) {
        scoped_refptr<SharedXnnpackContext> refptr =
        base::MakeRefCounted<SharedXnnpackContext>(num_threads);
        instance_ = refptr.get();
        return refptr;
        } else {
        return base::WrapRefCounted(instance_);
        }
        }

      • We may need multiple `SharedXnnpackContext` with different configurations (i.e. […]

        You are right. However, according to webnn spec, there is no num_threads option. It was here only for testing purpose. I'll remove that and we only need single `SharedXnnpackContext`.

      • Include the head file like #include "build/buildflag. […]

        Ack

      • Is it necessary? i.e. […]

        It's unnecessary. It should be only called once. I'll fix it.

      • Patch Set #4, Line 67: pthreadpool_

        If the destructor can be called twice, setting `pthreadpool_` to nullptr is needed.

      • It should be called once. I'll fix above comment.

      • Just want to point out that, normally TaskRunner, PostTask and SequenceChecker etc. […]

        Ack

    • File third_party/blink/renderer/modules/ml/webnn/ml_graph.h:

      • Ack

    • File third_party/blink/renderer/modules/ml/webnn/ml_graph_builder.cc:

      • ack. I'll fix it by using base numerics as Alex suggested.

      • Patch Set #4, Line 58:

        int32_t out_size = (input_size + stride - 1) / stride;
        int32_t dilated_filter = (filter_size - 1) * dilation + 1;
        int32_t needed_input = (out_size - 1) * stride + dilated_filter;

        Also highlight some places that may overflow.

      • ditto

      • ditto.

      • Commbine L.584 - 587 to one line […]

        This would cause a compilation error: initializer list cannot be used on the right hand side of operator '?'

      • Does use push_back instead of array like […]

        Ack

      • Ack

    • File third_party/blink/renderer/modules/ml/webnn/ml_graph_xnnpack.h:

      • Ack

    • File third_party/blink/renderer/modules/ml/webnn/ml_graph_xnnpack.cc:

      • Ack, will fix in the following patchset.

      • Patch Set #4, Line 126: static_cast<uint32_t>(named_outputs.size() + inputs.size());

        can this overflow? might be good to use checked casts for web-content controlled sizes (throughout)

      • ditto.

      • WebNN has lots of operators, there will be more and more code here, and GPU implementation also need […]

        Thanks for the suggestion. For this CL, I'd like to consolidate the graph builder code that is easier for review.

      • It's better to reserve the capability for vector with add external_values.reserve(inputs. […]

        Ack

    • File third_party/blink/renderer/modules/ml/webnn/ml_operator.cc:

      • Remove the unused "ml_context.h" and "ml_graph. […]

        Ack

    To view, visit change 3684745. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I40141329eb339a09b51ab997769877135f4f056a
    Gerrit-Change-Number: 3684745
    Gerrit-PatchSet: 5
    Gerrit-Owner: ningxin hu <ningx...@intel.com>
    Gerrit-Reviewer: Alex Gough <aj...@chromium.org>
    Gerrit-Reviewer: Honglin Yu <hong...@chromium.org>
    Gerrit-Reviewer: Junwei Fu <junw...@intel.com>
    Gerrit-Reviewer: Robert Ogden <rober...@chromium.org>
    Gerrit-CC: Jonathan Bingham <bing...@google.com>
    Gerrit-CC: Kentaro Hara <har...@chromium.org>
    Gerrit-CC: Rafael Cintron <rafael....@microsoft.com>
    Gerrit-Attention: Alex Gough <aj...@chromium.org>
    Gerrit-Attention: Junwei Fu <junw...@intel.com>
    Gerrit-Attention: Robert Ogden <rober...@chromium.org>
    Gerrit-Attention: Honglin Yu <hong...@chromium.org>
    Gerrit-Comment-Date: Mon, 06 Jun 2022 11:28:42 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Alex Gough <aj...@chromium.org>
    Comment-In-Reply-To: Junwei Fu <junw...@intel.com>
    Comment-In-Reply-To: Honglin Yu <hong...@chromium.org>
    Gerrit-MessageType: comment

    ningxin hu (Gerrit)

    unread,
    Jun 6, 2022, 7:35:25 AM6/6/22
    to blink-revie...@chromium.org, blink-...@chromium.org, jmedle...@chromium.org, Robert Ogden, Alex Gough, Honglin Yu, Junwei Fu, Jonathan Bingham, Rafael Cintron, chromium...@chromium.org, Kentaro Hara

    Attention is currently required from: Alex Gough, Honglin Yu, Junwei Fu, Robert Ogden.

    View Change

    3 comments:

    • File third_party/blink/renderer/modules/ml/ml_context_options.idl:

      • Patch Set #5, Line 20: "default"

        The latest webnn spec doesn't have this `default`. It should be removed.

      • Patch Set #5, Line 32: "default"

        We need to finalize the `auto` or `default` discussion in WG and implement that.

      • Patch Set #5, Line 47: MLContextType type = "webnn";

        I feel we need to introduce the `MLContextType` for Model-Loader and WebNN. The current default value is just for running legacy WebNN tests. It should not be set by user explicitly. I'll remove it once we make consensus in WG.

        Honglin, WDYT?

    To view, visit change 3684745. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I40141329eb339a09b51ab997769877135f4f056a
    Gerrit-Change-Number: 3684745
    Gerrit-PatchSet: 5
    Gerrit-Owner: ningxin hu <ningx...@intel.com>
    Gerrit-Reviewer: Alex Gough <aj...@chromium.org>
    Gerrit-Reviewer: Honglin Yu <hong...@chromium.org>
    Gerrit-Reviewer: Junwei Fu <junw...@intel.com>
    Gerrit-Reviewer: Robert Ogden <rober...@chromium.org>
    Gerrit-CC: Jonathan Bingham <bing...@google.com>
    Gerrit-CC: Kentaro Hara <har...@chromium.org>
    Gerrit-CC: Rafael Cintron <rafael....@microsoft.com>
    Gerrit-Attention: Alex Gough <aj...@chromium.org>
    Gerrit-Attention: Junwei Fu <junw...@intel.com>
    Gerrit-Attention: Robert Ogden <rober...@chromium.org>
    Gerrit-Attention: Honglin Yu <hong...@chromium.org>
    Gerrit-Comment-Date: Mon, 06 Jun 2022 11:35:18 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Gerrit-MessageType: comment

    Robert Ogden (Gerrit)

    unread,
    Jun 6, 2022, 12:08:40 PM6/6/22
    to ningxin hu, blink-revie...@chromium.org, blink-...@chromium.org, jmedle...@chromium.org, Matthew Denton, Alex Gough, Honglin Yu, Junwei Fu, Jonathan Bingham, Rafael Cintron, chromium...@chromium.org, Kentaro Hara

    Attention is currently required from: Alex Gough, Honglin Yu, Junwei Fu, ningxin hu.

    View Change

    1 comment:

    To view, visit change 3684745. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I40141329eb339a09b51ab997769877135f4f056a
    Gerrit-Change-Number: 3684745
    Gerrit-PatchSet: 5
    Gerrit-Owner: ningxin hu <ningx...@intel.com>
    Gerrit-Reviewer: Alex Gough <aj...@chromium.org>
    Gerrit-Reviewer: Honglin Yu <hong...@chromium.org>
    Gerrit-Reviewer: Junwei Fu <junw...@intel.com>
    Gerrit-Reviewer: Robert Ogden <rober...@chromium.org>
    Gerrit-CC: Jonathan Bingham <bing...@google.com>
    Gerrit-CC: Kentaro Hara <har...@chromium.org>
    Gerrit-CC: Matthew Denton <mpde...@chromium.org>
    Gerrit-CC: Rafael Cintron <rafael....@microsoft.com>
    Gerrit-Attention: Alex Gough <aj...@chromium.org>
    Gerrit-Attention: ningxin hu <ningx...@intel.com>
    Gerrit-Attention: Junwei Fu <junw...@intel.com>
    Gerrit-Attention: Honglin Yu <hong...@chromium.org>
    Gerrit-Comment-Date: Mon, 06 Jun 2022 16:08:32 +0000

    Robert Ogden (Gerrit)

    unread,
    Jun 6, 2022, 12:09:23 PM6/6/22
    to ningxin hu, blink-revie...@chromium.org, blink-...@chromium.org, jmedle...@chromium.org, Matthew Denton, Alex Gough, Honglin Yu, Junwei Fu, Jonathan Bingham, Rafael Cintron, chromium...@chromium.org, Kentaro Hara

    Attention is currently required from: Alex Gough, Honglin Yu, Junwei Fu, ningxin hu.

    View Change

    1 comment:

    • Commit Message:

      • Patch Set #4, Line 11: In particular, on Linux, this prototype initializes XNNPACK before entering sandbox because XNNPACK requires to access /proc/cpuinfo that is not allowed within sandbox.

    To view, visit change 3684745. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I40141329eb339a09b51ab997769877135f4f056a
    Gerrit-Change-Number: 3684745
    Gerrit-PatchSet: 5
    Gerrit-Owner: ningxin hu <ningx...@intel.com>
    Gerrit-Reviewer: Alex Gough <aj...@chromium.org>
    Gerrit-Reviewer: Honglin Yu <hong...@chromium.org>
    Gerrit-Reviewer: Junwei Fu <junw...@intel.com>
    Gerrit-Reviewer: Robert Ogden <rober...@chromium.org>
    Gerrit-CC: Jonathan Bingham <bing...@google.com>
    Gerrit-CC: Kentaro Hara <har...@chromium.org>
    Gerrit-CC: Matthew Denton <mpde...@chromium.org>
    Gerrit-CC: Rafael Cintron <rafael....@microsoft.com>
    Gerrit-Attention: Alex Gough <aj...@chromium.org>
    Gerrit-Attention: ningxin hu <ningx...@intel.com>
    Gerrit-Attention: Junwei Fu <junw...@intel.com>
    Gerrit-Attention: Honglin Yu <hong...@chromium.org>
    Gerrit-Comment-Date: Mon, 06 Jun 2022 16:09:15 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: ningxin hu <ningx...@intel.com>

    Matthew Denton (Gerrit)

    unread,
    Jun 6, 2022, 3:45:22 PM6/6/22
    to ningxin hu, blink-revie...@chromium.org, blink-...@chromium.org, jmedle...@chromium.org, Robert Ogden, Alex Gough, Honglin Yu, Junwei Fu, Jonathan Bingham, Rafael Cintron, chromium...@chromium.org, Kentaro Hara

    Attention is currently required from: Alex Gough, Honglin Yu, Junwei Fu, Robert Ogden, ningxin hu.

    View Change

    2 comments:

    To view, visit change 3684745. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I40141329eb339a09b51ab997769877135f4f056a
    Gerrit-Change-Number: 3684745
    Gerrit-PatchSet: 5
    Gerrit-Owner: ningxin hu <ningx...@intel.com>
    Gerrit-Reviewer: Alex Gough <aj...@chromium.org>
    Gerrit-Reviewer: Honglin Yu <hong...@chromium.org>
    Gerrit-Reviewer: Junwei Fu <junw...@intel.com>
    Gerrit-Reviewer: Robert Ogden <rober...@chromium.org>
    Gerrit-CC: Jonathan Bingham <bing...@google.com>
    Gerrit-CC: Kentaro Hara <har...@chromium.org>
    Gerrit-CC: Matthew Denton <mpde...@chromium.org>
    Gerrit-CC: Rafael Cintron <rafael....@microsoft.com>
    Gerrit-Attention: Alex Gough <aj...@chromium.org>
    Gerrit-Attention: ningxin hu <ningx...@intel.com>
    Gerrit-Attention: Junwei Fu <junw...@intel.com>
    Gerrit-Attention: Robert Ogden <rober...@chromium.org>
    Gerrit-Attention: Honglin Yu <hong...@chromium.org>
    Gerrit-Comment-Date: Mon, 06 Jun 2022 19:45:12 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No

    ningxin hu (Gerrit)

    unread,
    Jun 6, 2022, 11:34:55 PM6/6/22
    to blink-revie...@chromium.org, blink-...@chromium.org, jmedle...@chromium.org, Matthew Denton, Robert Ogden, Alex Gough, Honglin Yu, Junwei Fu, Jonathan Bingham, Rafael Cintron, chromium...@chromium.org, Kentaro Hara

    Attention is currently required from: Alex Gough, Honglin Yu, Junwei Fu, Matthew Denton, Robert Ogden.

    View Change

    1 comment:

    • File chrome/app/chrome_main_delegate.cc:

      • We only want this in the renderer right? Let's maybe put it in here? https://source.chromium. […]

        Thanks Matthew. I tried to move the `xnn_initialize` to renderer_main_platform_delegate_linux.cc, however it reports error about parsing /proc/cpuinfo as log shows:

        "
        Error in cpuinfo: failed to parse processor information from /proc/cpuinfo
        [24807:1:0607/110359.588421:ERROR:renderer_main_platform_delegate_linux.cc(30)] Failed to initialize XNNPACK
        "

        Did I miss anything?

    To view, visit change 3684745. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I40141329eb339a09b51ab997769877135f4f056a
    Gerrit-Change-Number: 3684745
    Gerrit-PatchSet: 5
    Gerrit-Owner: ningxin hu <ningx...@intel.com>
    Gerrit-Reviewer: Alex Gough <aj...@chromium.org>
    Gerrit-Reviewer: Honglin Yu <hong...@chromium.org>
    Gerrit-Reviewer: Junwei Fu <junw...@intel.com>
    Gerrit-Reviewer: Robert Ogden <rober...@chromium.org>
    Gerrit-CC: Jonathan Bingham <bing...@google.com>
    Gerrit-CC: Kentaro Hara <har...@chromium.org>
    Gerrit-CC: Matthew Denton <mpde...@chromium.org>
    Gerrit-CC: Rafael Cintron <rafael....@microsoft.com>
    Gerrit-Attention: Alex Gough <aj...@chromium.org>
    Gerrit-Attention: Junwei Fu <junw...@intel.com>
    Gerrit-Attention: Robert Ogden <rober...@chromium.org>
    Gerrit-Attention: Matthew Denton <mpde...@chromium.org>
    Gerrit-Attention: Honglin Yu <hong...@chromium.org>
    Gerrit-Comment-Date: Tue, 07 Jun 2022 03:34:45 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Matthew Denton <mpde...@chromium.org>
    Gerrit-MessageType: comment

    ningxin hu (Gerrit)

    unread,
    Jun 7, 2022, 2:20:02 AM6/7/22
    to blink-revie...@chromium.org, blink-...@chromium.org, jmedle...@chromium.org, Matthew Denton, Robert Ogden, Alex Gough, Honglin Yu, Junwei Fu, Jonathan Bingham, Rafael Cintron, chromium...@chromium.org, Kentaro Hara

    Attention is currently required from: Alex Gough, Honglin Yu, Junwei Fu, Matthew Denton, Robert Ogden.

    View Change

    1 comment:

    • File chrome/app/chrome_main_delegate.cc:

      • Thanks Matthew. I tried to move the `xnn_initialize` to renderer_main_platform_delegate_linux. […]

        Patchset6 reflects what I reported.

    To view, visit change 3684745. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I40141329eb339a09b51ab997769877135f4f056a
    Gerrit-Change-Number: 3684745
    Gerrit-PatchSet: 6
    Gerrit-Owner: ningxin hu <ningx...@intel.com>
    Gerrit-Reviewer: Alex Gough <aj...@chromium.org>
    Gerrit-Reviewer: Honglin Yu <hong...@chromium.org>
    Gerrit-Reviewer: Junwei Fu <junw...@intel.com>
    Gerrit-Reviewer: Robert Ogden <rober...@chromium.org>
    Gerrit-CC: Jonathan Bingham <bing...@google.com>
    Gerrit-CC: Kentaro Hara <har...@chromium.org>
    Gerrit-CC: Matthew Denton <mpde...@chromium.org>
    Gerrit-CC: Rafael Cintron <rafael....@microsoft.com>
    Gerrit-Attention: Alex Gough <aj...@chromium.org>
    Gerrit-Attention: Junwei Fu <junw...@intel.com>
    Gerrit-Attention: Robert Ogden <rober...@chromium.org>
    Gerrit-Attention: Matthew Denton <mpde...@chromium.org>
    Gerrit-Attention: Honglin Yu <hong...@chromium.org>
    Gerrit-Comment-Date: Tue, 07 Jun 2022 06:19:54 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: ningxin hu <ningx...@intel.com>

    Matthew Denton (Gerrit)

    unread,
    Jun 7, 2022, 4:29:20 PM6/7/22
    to ningxin hu, blink-revie...@chromium.org, blink-...@chromium.org, jmedle...@chromium.org, Robert Ogden, Alex Gough, Honglin Yu, Junwei Fu, Jonathan Bingham, Rafael Cintron, chromium...@chromium.org, Kentaro Hara

    Attention is currently required from: Alex Gough, Honglin Yu, Junwei Fu, Robert Ogden, ningxin hu.

    View Change

    1 comment:

    • File chrome/app/chrome_main_delegate.cc:

    To view, visit change 3684745. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I40141329eb339a09b51ab997769877135f4f056a
    Gerrit-Change-Number: 3684745
    Gerrit-PatchSet: 6
    Gerrit-Owner: ningxin hu <ningx...@intel.com>
    Gerrit-Reviewer: Alex Gough <aj...@chromium.org>
    Gerrit-Reviewer: Honglin Yu <hong...@chromium.org>
    Gerrit-Reviewer: Junwei Fu <junw...@intel.com>
    Gerrit-Reviewer: Robert Ogden <rober...@chromium.org>
    Gerrit-CC: Jonathan Bingham <bing...@google.com>
    Gerrit-CC: Kentaro Hara <har...@chromium.org>
    Gerrit-CC: Matthew Denton <mpde...@chromium.org>
    Gerrit-CC: Rafael Cintron <rafael....@microsoft.com>
    Gerrit-Attention: Alex Gough <aj...@chromium.org>
    Gerrit-Attention: ningxin hu <ningx...@intel.com>
    Gerrit-Attention: Junwei Fu <junw...@intel.com>
    Gerrit-Attention: Robert Ogden <rober...@chromium.org>
    Gerrit-Attention: Honglin Yu <hong...@chromium.org>
    Gerrit-Comment-Date: Tue, 07 Jun 2022 20:29:08 +0000

    ningxin hu (Gerrit)

    unread,
    Jun 8, 2022, 2:43:38 AM6/8/22
    to blink-revie...@chromium.org, blink-...@chromium.org, jmedle...@chromium.org, Matthew Denton, Robert Ogden, Alex Gough, Honglin Yu, Junwei Fu, Jonathan Bingham, Rafael Cintron, chromium...@chromium.org, Kentaro Hara

    Attention is currently required from: Alex Gough, Honglin Yu, Junwei Fu, Matthew Denton, Robert Ogden.

    View Change

    8 comments:

    • Patchset:

      • Patch Set #4:

        That's great suggestion. I'll look into base numerics and apply to the implementation.

        Applied checked casts and base numerics in Pathset 7. Please take another look. Thanks.

    • Patchset:

      • Should I do this now or is this just a prototype?

      • Ah sorry, it seems a decent amount of this process startup code (in particular, renderer_main_platfo […]

        Yeah, it works. It is implemented in Patchset 7. Please take another look. Thanks.

    • File third_party/blink/renderer/modules/ml/webnn/ml_graph_builder.cc:

      • ack. I'll fix it by using base numerics as Alex suggested.

        I understand this would not be negative, because `i < rank_a` is already hold before, correct?

      • Patch Set #4, Line 58:

        int32_t out_size = (input_size + stride - 1) / stride;
        int32_t dilated_filter = (filter_size - 1) * dilation + 1;
        int32_t needed_input = (out_size - 1) * stride + dilated_filter;

      • ditto

        Fixed in Pathset 7 by using checked math. Please take another look. Thanks.

      • ditto.

        Done

    • File third_party/blink/renderer/modules/ml/webnn/ml_graph_xnnpack.cc:

      • Ack, will fix in the following patchset.

        Done

      • ditto.

        Done

    To view, visit change 3684745. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I40141329eb339a09b51ab997769877135f4f056a
    Gerrit-Change-Number: 3684745
    Gerrit-PatchSet: 7
    Gerrit-Owner: ningxin hu <ningx...@intel.com>
    Gerrit-Reviewer: Alex Gough <aj...@chromium.org>
    Gerrit-Reviewer: Honglin Yu <hong...@chromium.org>
    Gerrit-Reviewer: Junwei Fu <junw...@intel.com>
    Gerrit-Reviewer: Robert Ogden <rober...@chromium.org>
    Gerrit-CC: Jonathan Bingham <bing...@google.com>
    Gerrit-CC: Kentaro Hara <har...@chromium.org>
    Gerrit-CC: Matthew Denton <mpde...@chromium.org>
    Gerrit-CC: Rafael Cintron <rafael....@microsoft.com>
    Gerrit-Attention: Alex Gough <aj...@chromium.org>
    Gerrit-Attention: Junwei Fu <junw...@intel.com>
    Gerrit-Attention: Robert Ogden <rober...@chromium.org>
    Gerrit-Attention: Matthew Denton <mpde...@chromium.org>
    Gerrit-Attention: Honglin Yu <hong...@chromium.org>
    Gerrit-Comment-Date: Wed, 08 Jun 2022 06:43:29 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Alex Gough <aj...@chromium.org>
    Comment-In-Reply-To: ningxin hu <ningx...@intel.com>
    Comment-In-Reply-To: Robert Ogden <rober...@chromium.org>
    Comment-In-Reply-To: Matthew Denton <mpde...@chromium.org>

    ningxin hu (Gerrit)

    unread,
    Jun 8, 2022, 4:17:18 AM6/8/22
    to blink-revie...@chromium.org, blink-...@chromium.org, jmedle...@chromium.org, Matthew Denton, Robert Ogden, Alex Gough, Honglin Yu, Junwei Fu, Jonathan Bingham, Rafael Cintron, chromium...@chromium.org, Kentaro Hara

    Attention is currently required from: Alex Gough, Honglin Yu, Junwei Fu, Matthew Denton, Robert Ogden.

    View Change

    1 comment:

    To view, visit change 3684745. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I40141329eb339a09b51ab997769877135f4f056a
    Gerrit-Change-Number: 3684745
    Gerrit-PatchSet: 7
    Gerrit-Owner: ningxin hu <ningx...@intel.com>
    Gerrit-Reviewer: Alex Gough <aj...@chromium.org>
    Gerrit-Reviewer: Honglin Yu <hong...@chromium.org>
    Gerrit-Reviewer: Junwei Fu <junw...@intel.com>
    Gerrit-Reviewer: Robert Ogden <rober...@chromium.org>
    Gerrit-CC: Jonathan Bingham <bing...@google.com>
    Gerrit-CC: Kentaro Hara <har...@chromium.org>
    Gerrit-CC: Matthew Denton <mpde...@chromium.org>
    Gerrit-CC: Rafael Cintron <rafael....@microsoft.com>
    Gerrit-Attention: Alex Gough <aj...@chromium.org>
    Gerrit-Attention: Junwei Fu <junw...@intel.com>
    Gerrit-Attention: Robert Ogden <rober...@chromium.org>
    Gerrit-Attention: Matthew Denton <mpde...@chromium.org>
    Gerrit-Attention: Honglin Yu <hong...@chromium.org>
    Gerrit-Comment-Date: Wed, 08 Jun 2022 08:17:12 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Gerrit-MessageType: comment

    Honglin Yu (Gerrit)

    unread,
    Jun 8, 2022, 5:23:43 AM6/8/22
    to ningxin hu, blink-revie...@chromium.org, blink-...@chromium.org, jmedle...@chromium.org, Matthew Denton, Robert Ogden, Alex Gough, Junwei Fu, Jonathan Bingham, Rafael Cintron, chromium...@chromium.org, Kentaro Hara

    Attention is currently required from: Alex Gough, Junwei Fu, Matthew Denton, Robert Ogden, ningxin hu.

    View Change

    1 comment:

    • File third_party/blink/renderer/modules/ml/ml.idl:

      • TFLite WebNN delegate C++ implementation requires sync call. https://github. […]

        Yeah, having two versions sounds fine to me, at least for the moment.

    To view, visit change 3684745. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I40141329eb339a09b51ab997769877135f4f056a
    Gerrit-Change-Number: 3684745
    Gerrit-PatchSet: 7
    Gerrit-Owner: ningxin hu <ningx...@intel.com>
    Gerrit-Reviewer: Alex Gough <aj...@chromium.org>
    Gerrit-Reviewer: Honglin Yu <hong...@chromium.org>
    Gerrit-Reviewer: Junwei Fu <junw...@intel.com>
    Gerrit-Reviewer: Robert Ogden <rober...@chromium.org>
    Gerrit-CC: Jonathan Bingham <bing...@google.com>
    Gerrit-CC: Kentaro Hara <har...@chromium.org>
    Gerrit-CC: Matthew Denton <mpde...@chromium.org>
    Gerrit-CC: Rafael Cintron <rafael....@microsoft.com>
    Gerrit-Attention: Alex Gough <aj...@chromium.org>
    Gerrit-Attention: ningxin hu <ningx...@intel.com>
    Gerrit-Attention: Junwei Fu <junw...@intel.com>
    Gerrit-Attention: Robert Ogden <rober...@chromium.org>
    Gerrit-Attention: Matthew Denton <mpde...@chromium.org>
    Gerrit-Comment-Date: Wed, 08 Jun 2022 09:23:32 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: ningxin hu <ningx...@intel.com>
    Gerrit-MessageType: comment

    Robert Ogden (Gerrit)

    unread,
    Jun 8, 2022, 6:53:56 PM6/8/22
    to ningxin hu, blink-revie...@chromium.org, blink-...@chromium.org, jmedle...@chromium.org, Matthew Denton, Alex Gough, Honglin Yu, Junwei Fu, Jonathan Bingham, Rafael Cintron, chromium...@chromium.org, Kentaro Hara

    Attention is currently required from: Alex Gough, Junwei Fu, Matthew Denton, ningxin hu.

    View Change

    1 comment:

    To view, visit change 3684745. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I40141329eb339a09b51ab997769877135f4f056a
    Gerrit-Change-Number: 3684745
    Gerrit-PatchSet: 7
    Gerrit-Owner: ningxin hu <ningx...@intel.com>
    Gerrit-Reviewer: Alex Gough <aj...@chromium.org>
    Gerrit-Reviewer: Honglin Yu <hong...@chromium.org>
    Gerrit-Reviewer: Junwei Fu <junw...@intel.com>
    Gerrit-Reviewer: Robert Ogden <rober...@chromium.org>
    Gerrit-CC: Jonathan Bingham <bing...@google.com>
    Gerrit-CC: Kentaro Hara <har...@chromium.org>
    Gerrit-CC: Matthew Denton <mpde...@chromium.org>
    Gerrit-CC: Rafael Cintron <rafael....@microsoft.com>
    Gerrit-Attention: Alex Gough <aj...@chromium.org>
    Gerrit-Attention: ningxin hu <ningx...@intel.com>
    Gerrit-Attention: Junwei Fu <junw...@intel.com>
    Gerrit-Attention: Matthew Denton <mpde...@chromium.org>
    Gerrit-Comment-Date: Wed, 08 Jun 2022 22:53:47 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: ningxin hu <ningx...@intel.com>
    Comment-In-Reply-To: Robert Ogden <rober...@chromium.org>
    Comment-In-Reply-To: Matthew Denton <mpde...@chromium.org>
    Gerrit-MessageType: comment

    Honglin Yu (Gerrit)

    unread,
    Jun 8, 2022, 9:06:36 PM6/8/22
    to ningxin hu, blink-revie...@chromium.org, blink-...@chromium.org, jmedle...@chromium.org, Matthew Denton, Robert Ogden, Alex Gough, Junwei Fu, Jonathan Bingham, Rafael Cintron, chromium...@chromium.org, Kentaro Hara

    Attention is currently required from: Alex Gough, Junwei Fu, Matthew Denton, ningxin hu.

    View Change

    1 comment:

    • File third_party/blink/renderer/modules/ml/ml.idl:

    To view, visit change 3684745. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I40141329eb339a09b51ab997769877135f4f056a
    Gerrit-Change-Number: 3684745
    Gerrit-PatchSet: 7
    Gerrit-Owner: ningxin hu <ningx...@intel.com>
    Gerrit-Reviewer: Alex Gough <aj...@chromium.org>
    Gerrit-Reviewer: Honglin Yu <hong...@chromium.org>
    Gerrit-Reviewer: Junwei Fu <junw...@intel.com>
    Gerrit-Reviewer: Robert Ogden <rober...@chromium.org>
    Gerrit-CC: Jonathan Bingham <bing...@google.com>
    Gerrit-CC: Kentaro Hara <har...@chromium.org>
    Gerrit-CC: Matthew Denton <mpde...@chromium.org>
    Gerrit-CC: Rafael Cintron <rafael....@microsoft.com>
    Gerrit-Attention: Alex Gough <aj...@chromium.org>
    Gerrit-Attention: ningxin hu <ningx...@intel.com>
    Gerrit-Attention: Junwei Fu <junw...@intel.com>
    Gerrit-Attention: Matthew Denton <mpde...@chromium.org>
    Gerrit-Comment-Date: Thu, 09 Jun 2022 01:06:24 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: ningxin hu <ningx...@intel.com>

    Alex Gough (Gerrit)

    unread,
    Jun 8, 2022, 9:57:38 PM6/8/22
    to ningxin hu, blink-revie...@chromium.org, blink-...@chromium.org, jmedle...@chromium.org, Matthew Denton, Robert Ogden, Alex Gough, Honglin Yu, Junwei Fu, Jonathan Bingham, Rafael Cintron, chromium...@chromium.org, Kentaro Hara

    Attention is currently required from: Junwei Fu, Matthew Denton, ningxin hu.

    View Change

    1 comment:

    • Patchset:

      • Patch Set #7:

        Note: I was ill today so did not get to take another look and I'll be OOO for the next few days. Feel free to wait until mid-next-week or swap for a different 
        reviewer.

    To view, visit change 3684745. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I40141329eb339a09b51ab997769877135f4f056a
    Gerrit-Change-Number: 3684745
    Gerrit-PatchSet: 7
    Gerrit-Owner: ningxin hu <ningx...@intel.com>
    Gerrit-Reviewer: Alex Gough <aj...@chromium.org>
    Gerrit-Reviewer: Honglin Yu <hong...@chromium.org>
    Gerrit-Reviewer: Junwei Fu <junw...@intel.com>
    Gerrit-Reviewer: Robert Ogden <rober...@chromium.org>
    Gerrit-CC: Jonathan Bingham <bing...@google.com>
    Gerrit-CC: Kentaro Hara <har...@chromium.org>
    Gerrit-CC: Matthew Denton <mpde...@chromium.org>
    Gerrit-CC: Rafael Cintron <rafael....@microsoft.com>
    Gerrit-Attention: ningxin hu <ningx...@intel.com>
    Gerrit-Attention: Junwei Fu <junw...@intel.com>
    Gerrit-Attention: Matthew Denton <mpde...@chromium.org>
    Gerrit-Comment-Date: Thu, 09 Jun 2022 01:57:30 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Gerrit-MessageType: comment

    Honglin Yu (Gerrit)

    unread,
    Jun 8, 2022, 10:07:39 PM6/8/22
    to ningxin hu, blink-revie...@chromium.org, blink-...@chromium.org, jmedle...@chromium.org, Matthew Denton, Robert Ogden, Alex Gough, Junwei Fu, Jonathan Bingham, Rafael Cintron, chromium...@chromium.org, Kentaro Hara

    Attention is currently required from: Alex Gough, Junwei Fu, Matthew Denton, ningxin hu.

    View Change

    1 comment:

    • Patchset:

      • Patch Set #7:

        Note: I was ill today so did not get to take another look and I'll be OOO for the next few days. […]

        Sorry to hear it, Alex. Get better soon!

    To view, visit change 3684745. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I40141329eb339a09b51ab997769877135f4f056a
    Gerrit-Change-Number: 3684745
    Gerrit-PatchSet: 7
    Gerrit-Owner: ningxin hu <ningx...@intel.com>
    Gerrit-Reviewer: Alex Gough <aj...@chromium.org>
    Gerrit-Reviewer: Honglin Yu <hong...@chromium.org>
    Gerrit-Reviewer: Junwei Fu <junw...@intel.com>
    Gerrit-Reviewer: Robert Ogden <rober...@chromium.org>
    Gerrit-CC: Jonathan Bingham <bing...@google.com>
    Gerrit-CC: Kentaro Hara <har...@chromium.org>
    Gerrit-CC: Matthew Denton <mpde...@chromium.org>
    Gerrit-CC: Rafael Cintron <rafael....@microsoft.com>
    Gerrit-Attention: Alex Gough <aj...@chromium.org>
    Gerrit-Attention: ningxin hu <ningx...@intel.com>
    Gerrit-Attention: Junwei Fu <junw...@intel.com>
    Gerrit-Attention: Matthew Denton <mpde...@chromium.org>
    Gerrit-Comment-Date: Thu, 09 Jun 2022 02:07:30 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Alex Gough <aj...@chromium.org>
    Gerrit-MessageType: comment

    ningxin hu (Gerrit)

    unread,
    Jun 8, 2022, 10:08:54 PM6/8/22
    to blink-revie...@chromium.org, blink-...@chromium.org, jmedle...@chromium.org, Matthew Denton, Robert Ogden, Alex Gough, Honglin Yu, Junwei Fu, Jonathan Bingham, Rafael Cintron, chromium...@chromium.org, Kentaro Hara

    Attention is currently required from: Alex Gough, Junwei Fu, Matthew Denton.

    View Change

    1 comment:

    • Patchset:

      • Patch Set #7:

        Note: I was ill today so did not get to take another look and I'll be OOO for the next few days. […]

      • Alex, no worries, it's no problem to me, and thanks for sharing with me. Please take a good reset and wish you recover soon. At meanwhile, I can continue to address the comments from Honglin on implementation and other spec related items. Take care!

    To view, visit change 3684745. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I40141329eb339a09b51ab997769877135f4f056a
    Gerrit-Change-Number: 3684745
    Gerrit-PatchSet: 7
    Gerrit-Owner: ningxin hu <ningx...@intel.com>
    Gerrit-Reviewer: Alex Gough <aj...@chromium.org>
    Gerrit-Reviewer: Honglin Yu <hong...@chromium.org>
    Gerrit-Reviewer: Junwei Fu <junw...@intel.com>
    Gerrit-Reviewer: Robert Ogden <rober...@chromium.org>
    Gerrit-CC: Jonathan Bingham <bing...@google.com>
    Gerrit-CC: Kentaro Hara <har...@chromium.org>
    Gerrit-CC: Matthew Denton <mpde...@chromium.org>
    Gerrit-CC: Rafael Cintron <rafael....@microsoft.com>
    Gerrit-Attention: Alex Gough <aj...@chromium.org>
    Gerrit-Attention: Junwei Fu <junw...@intel.com>
    Gerrit-Attention: Matthew Denton <mpde...@chromium.org>
    Gerrit-Comment-Date: Thu, 09 Jun 2022 02:08:46 +0000

    ningxin hu (Gerrit)

    unread,
    Jun 8, 2022, 11:02:58 PM6/8/22
    to blink-revie...@chromium.org, blink-...@chromium.org, jmedle...@chromium.org, Matthew Denton, Robert Ogden, Alex Gough, Honglin Yu, Junwei Fu, Jonathan Bingham, Rafael Cintron, chromium...@chromium.org, Kentaro Hara

    Attention is currently required from: Alex Gough, Honglin Yu, Junwei Fu, Matthew Denton.

    View Change

    1 comment:

    • File third_party/blink/renderer/modules/ml/ml.idl:

      • It seems more natural to have the "async" version as default and create a new function `createContex […]

        The current WebNN spec has "Async" postfix for async version, e.g., `MLGraphBuilder.buildAsync`. WebGPU API also share this convention, where if an API has both sync and async versions, the async one has "Async" postfix. e.g., `GPUDevice.createComputePipelineAsync`: https://www.w3.org/TR/webgpu/#dom-gpudevice-createcomputepipelineasync

        As you shared, there is another convention vise-versa that has postfix "Sync" for sync version.

        I am fine with both conventions. I think we need to fix:
        1. Introduce the async version of `createContext` into WebNN spec.
        2. Align the sync and async methods naming within WebNN spec and with Model-Loader spec.

        I propose to discuss those two items within WebML WG. WDYT?

    To view, visit change 3684745. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I40141329eb339a09b51ab997769877135f4f056a
    Gerrit-Change-Number: 3684745
    Gerrit-PatchSet: 7
    Gerrit-Owner: ningxin hu <ningx...@intel.com>
    Gerrit-Reviewer: Alex Gough <aj...@chromium.org>
    Gerrit-Reviewer: Honglin Yu <hong...@chromium.org>
    Gerrit-Reviewer: Junwei Fu <junw...@intel.com>
    Gerrit-Reviewer: Robert Ogden <rober...@chromium.org>
    Gerrit-CC: Jonathan Bingham <bing...@google.com>
    Gerrit-CC: Kentaro Hara <har...@chromium.org>
    Gerrit-CC: Matthew Denton <mpde...@chromium.org>
    Gerrit-CC: Rafael Cintron <rafael....@microsoft.com>
    Gerrit-Attention: Alex Gough <aj...@chromium.org>
    Gerrit-Attention: Junwei Fu <junw...@intel.com>
    Gerrit-Attention: Matthew Denton <mpde...@chromium.org>
    Gerrit-Attention: Honglin Yu <hong...@chromium.org>
    Gerrit-Comment-Date: Thu, 09 Jun 2022 03:02:50 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No

    Honglin Yu (Gerrit)

    unread,
    Jun 8, 2022, 11:06:17 PM6/8/22
    to ningxin hu, blink-revie...@chromium.org, blink-...@chromium.org, jmedle...@chromium.org, Matthew Denton, Robert Ogden, Alex Gough, Junwei Fu, Jonathan Bingham, Rafael Cintron, chromium...@chromium.org, Kentaro Hara

    Attention is currently required from: Alex Gough, Junwei Fu, Matthew Denton, ningxin hu.

    View Change

    1 comment:

    • File third_party/blink/renderer/modules/ml/ml.idl:

      • The current WebNN spec has "Async" postfix for async version, e.g., `MLGraphBuilder.buildAsync`. […]

        I see. If that is the case, I don't have any preference either. And agreed, let's discuss further in the future. Thanks

    To view, visit change 3684745. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I40141329eb339a09b51ab997769877135f4f056a
    Gerrit-Change-Number: 3684745
    Gerrit-PatchSet: 7
    Gerrit-Owner: ningxin hu <ningx...@intel.com>
    Gerrit-Reviewer: Alex Gough <aj...@chromium.org>
    Gerrit-Reviewer: Honglin Yu <hong...@chromium.org>
    Gerrit-Reviewer: Junwei Fu <junw...@intel.com>
    Gerrit-Reviewer: Robert Ogden <rober...@chromium.org>
    Gerrit-CC: Jonathan Bingham <bing...@google.com>
    Gerrit-CC: Kentaro Hara <har...@chromium.org>
    Gerrit-CC: Matthew Denton <mpde...@chromium.org>
    Gerrit-CC: Rafael Cintron <rafael....@microsoft.com>
    Gerrit-Attention: Alex Gough <aj...@chromium.org>
    Gerrit-Attention: ningxin hu <ningx...@intel.com>
    Gerrit-Attention: Junwei Fu <junw...@intel.com>
    Gerrit-Attention: Matthew Denton <mpde...@chromium.org>
    Gerrit-Comment-Date: Thu, 09 Jun 2022 03:06:04 +0000

    Matthew Denton (Gerrit)

    unread,
    Jun 9, 2022, 3:51:23 PM6/9/22
    to ningxin hu, blink-revie...@chromium.org, blink-...@chromium.org, jmedle...@chromium.org, Robert Ogden, Alex Gough, Honglin Yu, Junwei Fu, Jonathan Bingham, Rafael Cintron, chromium...@chromium.org, Kentaro Hara

    Attention is currently required from: Alex Gough, Junwei Fu, ningxin hu.

    View Change

    1 comment:

    • File content/app/content_main_runner_impl.cc:

    To view, visit change 3684745. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I40141329eb339a09b51ab997769877135f4f056a
    Gerrit-Change-Number: 3684745
    Gerrit-PatchSet: 7
    Gerrit-Owner: ningxin hu <ningx...@intel.com>
    Gerrit-Reviewer: Alex Gough <aj...@chromium.org>
    Gerrit-Reviewer: Honglin Yu <hong...@chromium.org>
    Gerrit-Reviewer: Junwei Fu <junw...@intel.com>
    Gerrit-Reviewer: Robert Ogden <rober...@chromium.org>
    Gerrit-CC: Jonathan Bingham <bing...@google.com>
    Gerrit-CC: Kentaro Hara <har...@chromium.org>
    Gerrit-CC: Matthew Denton <mpde...@chromium.org>
    Gerrit-CC: Rafael Cintron <rafael....@microsoft.com>
    Gerrit-Attention: Alex Gough <aj...@chromium.org>
    Gerrit-Attention: ningxin hu <ningx...@intel.com>
    Gerrit-Attention: Junwei Fu <junw...@intel.com>
    Gerrit-Comment-Date: Thu, 09 Jun 2022 19:51:13 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Gerrit-MessageType: comment

    Matthew Denton (Gerrit)

    unread,
    Jun 9, 2022, 3:52:11 PM6/9/22
    to ningxin hu, blink-revie...@chromium.org, blink-...@chromium.org, jmedle...@chromium.org, Robert Ogden, Alex Gough, Honglin Yu, Junwei Fu, Jonathan Bingham, Rafael Cintron, chromium...@chromium.org, Kentaro Hara

    Attention is currently required from: Alex Gough, Junwei Fu, ningxin hu.

    View Change

    1 comment:

    • File content/app/content_main_runner_impl.cc:

      • Whoops, ignore this.

    To view, visit change 3684745. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I40141329eb339a09b51ab997769877135f4f056a
    Gerrit-Change-Number: 3684745
    Gerrit-PatchSet: 7
    Gerrit-Owner: ningxin hu <ningx...@intel.com>
    Gerrit-Reviewer: Alex Gough <aj...@chromium.org>
    Gerrit-Reviewer: Honglin Yu <hong...@chromium.org>
    Gerrit-Reviewer: Junwei Fu <junw...@intel.com>
    Gerrit-Reviewer: Robert Ogden <rober...@chromium.org>
    Gerrit-CC: Jonathan Bingham <bing...@google.com>
    Gerrit-CC: Kentaro Hara <har...@chromium.org>
    Gerrit-CC: Matthew Denton <mpde...@chromium.org>
    Gerrit-CC: Rafael Cintron <rafael....@microsoft.com>
    Gerrit-Attention: Alex Gough <aj...@chromium.org>
    Gerrit-Attention: ningxin hu <ningx...@intel.com>
    Gerrit-Attention: Junwei Fu <junw...@intel.com>
    Gerrit-Comment-Date: Thu, 09 Jun 2022 19:52:02 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No

    Junwei (Gerrit)

    unread,
    Jun 9, 2022, 8:28:41 PM6/9/22
    to ningxin hu, blink-revie...@chromium.org, blink-...@chromium.org, jmedle...@chromium.org, Matthew Denton, Robert Ogden, Alex Gough, Honglin Yu, Junwei Fu, Jonathan Bingham, Rafael Cintron, chromium...@chromium.org, Kentaro Hara

    Attention is currently required from: Alex Gough, Junwei Fu, ningxin hu.

    View Change

    1 comment:

    To view, visit change 3684745. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I40141329eb339a09b51ab997769877135f4f056a
    Gerrit-Change-Number: 3684745
    Gerrit-PatchSet: 7
    Gerrit-Owner: ningxin hu <ningx...@intel.com>
    Gerrit-Reviewer: Alex Gough <aj...@chromium.org>
    Gerrit-Reviewer: Honglin Yu <hong...@chromium.org>
    Gerrit-Reviewer: Junwei Fu <junw...@intel.com>
    Gerrit-Reviewer: Robert Ogden <rober...@chromium.org>
    Gerrit-CC: Jonathan Bingham <bing...@google.com>
    Gerrit-CC: Junwei <fujunw...@gmail.com>
    Gerrit-CC: Kentaro Hara <har...@chromium.org>
    Gerrit-CC: Matthew Denton <mpde...@chromium.org>
    Gerrit-CC: Rafael Cintron <rafael....@microsoft.com>
    Gerrit-Attention: Alex Gough <aj...@chromium.org>
    Gerrit-Attention: ningxin hu <ningx...@intel.com>
    Gerrit-Attention: Junwei Fu <junw...@intel.com>
    Gerrit-Comment-Date: Fri, 10 Jun 2022 00:28:27 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Gerrit-MessageType: comment

    ningxin hu (Gerrit)

    unread,
    Jun 10, 2022, 4:33:23 AM6/10/22
    to blink-revie...@chromium.org, blink-...@chromium.org, jmedle...@chromium.org, Junwei, Matthew Denton, Robert Ogden, Alex Gough, Honglin Yu, Junwei Fu, Jonathan Bingham, Rafael Cintron, chromium...@chromium.org, Kentaro Hara

    Attention is currently required from: Honglin Yu, Junwei Fu.

    View Change

    4 comments:

    • File third_party/blink/renderer/modules/ml/ml_context_options.idl:

      • Reverted this change in PS9, let's leave it as it until spec discussion closed.

      • Patch Set #5, Line 32: "default"

        We need to finalize the `auto` or `default` discussion in WG and implement that.

      • Reverted this change in PS9, let's leave it as it until spec discussion closed.

      • I feel we need to introduce the `MLContextType` for Model-Loader and WebNN. […]

        I rethink about this design. It turns out this context type is not so necessary. In PS8, I reverted the `MLContextType` and `MLContextXnnpack`, and moved WebNN XNNPACK initialization and pthreadpool code to `MLGraphXnnpack`. This would avoid diverging from the spec.

        Please take another look.

    • File third_party/blink/renderer/modules/ml/webnn/ml_graph_builder.cc:

      • Maybe the algorithm of sorting operators need to extract a common function for async build [1]. […]

        Done in PS9, please take a look.

    To view, visit change 3684745. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I40141329eb339a09b51ab997769877135f4f056a
    Gerrit-Change-Number: 3684745
    Gerrit-PatchSet: 9
    Gerrit-Owner: ningxin hu <ningx...@intel.com>
    Gerrit-Reviewer: Alex Gough <aj...@chromium.org>
    Gerrit-Reviewer: Honglin Yu <hong...@chromium.org>
    Gerrit-Reviewer: Junwei Fu <junw...@intel.com>
    Gerrit-Reviewer: Robert Ogden <rober...@chromium.org>
    Gerrit-CC: Jonathan Bingham <bing...@google.com>
    Gerrit-CC: Junwei <fujunw...@gmail.com>
    Gerrit-CC: Kentaro Hara <har...@chromium.org>
    Gerrit-CC: Matthew Denton <mpde...@chromium.org>
    Gerrit-CC: Rafael Cintron <rafael....@microsoft.com>
    Gerrit-Attention: Junwei Fu <junw...@intel.com>
    Gerrit-Attention: Honglin Yu <hong...@chromium.org>
    Gerrit-Comment-Date: Fri, 10 Jun 2022 08:33:08 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: ningxin hu <ningx...@intel.com>
    Comment-In-Reply-To: Junwei <fujunw...@gmail.com>
    Gerrit-MessageType: comment

    ningxin hu (Gerrit)

    unread,
    Jun 10, 2022, 5:03:05 AM6/10/22
    to blink-revie...@chromium.org, blink-...@chromium.org, jmedle...@chromium.org, Junwei, Matthew Denton, Robert Ogden, Alex Gough, Honglin Yu, Junwei Fu, Jonathan Bingham, Rafael Cintron, chromium...@chromium.org, Kentaro Hara

    Attention is currently required from: Honglin Yu, Robert Ogden.

    View Change

    2 comments:

    • File third_party/blink/renderer/modules/ml/ml.idl:

    To view, visit change 3684745. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I40141329eb339a09b51ab997769877135f4f056a
    Gerrit-Change-Number: 3684745
    Gerrit-PatchSet: 9
    Gerrit-Owner: ningxin hu <ningx...@intel.com>
    Gerrit-Reviewer: Alex Gough <aj...@chromium.org>
    Gerrit-Reviewer: Honglin Yu <hong...@chromium.org>
    Gerrit-Reviewer: Junwei Fu <junw...@intel.com>
    Gerrit-Reviewer: Robert Ogden <rober...@chromium.org>
    Gerrit-CC: Jonathan Bingham <bing...@google.com>
    Gerrit-CC: Junwei <fujunw...@gmail.com>
    Gerrit-CC: Kentaro Hara <har...@chromium.org>
    Gerrit-CC: Matthew Denton <mpde...@chromium.org>
    Gerrit-CC: Rafael Cintron <rafael....@microsoft.com>
    Gerrit-Attention: Robert Ogden <rober...@chromium.org>
    Gerrit-Attention: Honglin Yu <hong...@chromium.org>
    Gerrit-Comment-Date: Fri, 10 Jun 2022 09:02:56 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: ningxin hu <ningx...@intel.com>

    Robert Ogden (Gerrit)

    unread,
    Jun 10, 2022, 11:44:42 AM6/10/22
    to ningxin hu, blink-revie...@chromium.org, blink-...@chromium.org, jmedle...@chromium.org, Junwei, Matthew Denton, Alex Gough, Honglin Yu, Junwei Fu, Jonathan Bingham, Rafael Cintron, chromium...@chromium.org, Kentaro Hara

    Attention is currently required from: Honglin Yu, ningxin hu.

    View Change

    1 comment:

    • File third_party/pthreadpool/BUILD.gn:

    To view, visit change 3684745. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I40141329eb339a09b51ab997769877135f4f056a
    Gerrit-Change-Number: 3684745
    Gerrit-PatchSet: 9
    Gerrit-Owner: ningxin hu <ningx...@intel.com>
    Gerrit-Reviewer: Alex Gough <aj...@chromium.org>
    Gerrit-Reviewer: Honglin Yu <hong...@chromium.org>
    Gerrit-Reviewer: Junwei Fu <junw...@intel.com>
    Gerrit-Reviewer: Robert Ogden <rober...@chromium.org>
    Gerrit-CC: Jonathan Bingham <bing...@google.com>
    Gerrit-CC: Junwei <fujunw...@gmail.com>
    Gerrit-CC: Kentaro Hara <har...@chromium.org>
    Gerrit-CC: Matthew Denton <mpde...@chromium.org>
    Gerrit-CC: Rafael Cintron <rafael....@microsoft.com>
    Gerrit-Attention: ningxin hu <ningx...@intel.com>
    Gerrit-Attention: Honglin Yu <hong...@chromium.org>
    Gerrit-Comment-Date: Fri, 10 Jun 2022 15:44:33 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: ningxin hu <ningx...@intel.com>
    Gerrit-MessageType: comment

    Robert Ogden (Gerrit)

    unread,
    Jun 10, 2022, 1:35:13 PM6/10/22
    to ningxin hu, blink-revie...@chromium.org, blink-...@chromium.org, jmedle...@chromium.org, Junwei, Matthew Denton, Alex Gough, Honglin Yu, Junwei Fu, Jonathan Bingham, Rafael Cintron, chromium...@chromium.org, Kentaro Hara

    Attention is currently required from: Honglin Yu, ningxin hu.

    Patch set 9:Code-Review +1

    View Change

    1 comment:

    To view, visit change 3684745. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I40141329eb339a09b51ab997769877135f4f056a
    Gerrit-Change-Number: 3684745
    Gerrit-PatchSet: 9
    Gerrit-Owner: ningxin hu <ningx...@intel.com>
    Gerrit-Reviewer: Alex Gough <aj...@chromium.org>
    Gerrit-Reviewer: Honglin Yu <hong...@chromium.org>
    Gerrit-Reviewer: Junwei Fu <junw...@intel.com>
    Gerrit-Reviewer: Robert Ogden <rober...@chromium.org>
    Gerrit-CC: Jonathan Bingham <bing...@google.com>
    Gerrit-CC: Junwei <fujunw...@gmail.com>
    Gerrit-CC: Kentaro Hara <har...@chromium.org>
    Gerrit-CC: Matthew Denton <mpde...@chromium.org>
    Gerrit-CC: Rafael Cintron <rafael....@microsoft.com>
    Gerrit-Attention: ningxin hu <ningx...@intel.com>
    Gerrit-Attention: Honglin Yu <hong...@chromium.org>
    Gerrit-Comment-Date: Fri, 10 Jun 2022 17:35:04 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: Yes
    Gerrit-MessageType: comment

    ningxin hu (Gerrit)

    unread,
    Jun 22, 2022, 11:35:39 PM6/22/22
    to blink-revie...@chromium.org, blink-...@chromium.org, jmedle...@chromium.org, Robert Ogden, Junwei, Matthew Denton, Alex Gough, Honglin Yu, Junwei Fu, Jonathan Bingham, Rafael Cintron, chromium...@chromium.org, Kentaro Hara

    Attention is currently required from: Honglin Yu.

    View Change

    2 comments:

    To view, visit change 3684745. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I40141329eb339a09b51ab997769877135f4f056a
    Gerrit-Change-Number: 3684745
    Gerrit-PatchSet: 12
    Gerrit-Owner: ningxin hu <ningx...@intel.com>
    Gerrit-Reviewer: Alex Gough <aj...@chromium.org>
    Gerrit-Reviewer: Honglin Yu <hong...@chromium.org>
    Gerrit-Reviewer: Junwei Fu <junw...@intel.com>
    Gerrit-Reviewer: Robert Ogden <rober...@chromium.org>
    Gerrit-CC: Jonathan Bingham <bing...@google.com>
    Gerrit-CC: Junwei <fujunw...@gmail.com>
    Gerrit-CC: Kentaro Hara <har...@chromium.org>
    Gerrit-CC: Matthew Denton <mpde...@chromium.org>
    Gerrit-CC: Rafael Cintron <rafael....@microsoft.com>
    Gerrit-Attention: Honglin Yu <hong...@chromium.org>
    Gerrit-Comment-Date: Thu, 23 Jun 2022 03:35:31 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: ningxin hu <ningx...@intel.com>

    ningxin hu (Gerrit)

    unread,
    Jun 22, 2022, 11:38:07 PM6/22/22
    to blink-revie...@chromium.org, blink-...@chromium.org, jmedle...@chromium.org, Chromium LUCI CQ, Robert Ogden, Junwei, Matthew Denton, Alex Gough, Honglin Yu, Junwei Fu, Jonathan Bingham, Rafael Cintron, chromium...@chromium.org, Kentaro Hara

    Attention is currently required from: Honglin Yu.

    View Change

    1 comment:

    • Patchset:

      • Patch Set #12:

        Honglin, could you please help trigger the try bots? Thanks.

    To view, visit change 3684745. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I40141329eb339a09b51ab997769877135f4f056a
    Gerrit-Change-Number: 3684745
    Gerrit-PatchSet: 12
    Gerrit-Owner: ningxin hu <ningx...@intel.com>
    Gerrit-Reviewer: Alex Gough <aj...@chromium.org>
    Gerrit-Reviewer: Honglin Yu <hong...@chromium.org>
    Gerrit-Reviewer: Junwei Fu <junw...@intel.com>
    Gerrit-Reviewer: Robert Ogden <rober...@chromium.org>
    Gerrit-Reviewer: ningxin hu <ningx...@intel.com>
    Gerrit-CC: Jonathan Bingham <bing...@google.com>
    Gerrit-CC: Junwei <fujunw...@gmail.com>
    Gerrit-CC: Kentaro Hara <har...@chromium.org>
    Gerrit-CC: Matthew Denton <mpde...@chromium.org>
    Gerrit-CC: Rafael Cintron <rafael....@microsoft.com>
    Gerrit-Attention: Honglin Yu <hong...@chromium.org>
    Gerrit-Comment-Date: Thu, 23 Jun 2022 03:37:58 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Gerrit-MessageType: comment

    Honglin Yu (Gerrit)

    unread,
    Jun 22, 2022, 11:41:15 PM6/22/22
    to ningxin hu, blink-revie...@chromium.org, blink-...@chromium.org, jmedle...@chromium.org, Chromium LUCI CQ, Robert Ogden, Junwei, Matthew Denton, Alex Gough, Junwei Fu, Jonathan Bingham, Rafael Cintron, chromium...@chromium.org, Kentaro Hara

    Attention is currently required from: ningxin hu.

    Patch set 12:Commit-Queue +1

    View Change

    1 comment:

    • Patchset:

      • Patch Set #12:

        Honglin, could you please help trigger the try bots? Thanks.

      • Done.

    To view, visit change 3684745. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I40141329eb339a09b51ab997769877135f4f056a
    Gerrit-Change-Number: 3684745
    Gerrit-PatchSet: 12
    Gerrit-Owner: ningxin hu <ningx...@intel.com>
    Gerrit-Reviewer: Alex Gough <aj...@chromium.org>
    Gerrit-Reviewer: Honglin Yu <hong...@chromium.org>
    Gerrit-Reviewer: Junwei Fu <junw...@intel.com>
    Gerrit-Reviewer: Robert Ogden <rober...@chromium.org>
    Gerrit-Reviewer: ningxin hu <ningx...@intel.com>
    Gerrit-CC: Jonathan Bingham <bing...@google.com>
    Gerrit-CC: Junwei <fujunw...@gmail.com>
    Gerrit-CC: Kentaro Hara <har...@chromium.org>
    Gerrit-CC: Matthew Denton <mpde...@chromium.org>
    Gerrit-CC: Rafael Cintron <rafael....@microsoft.com>
    Gerrit-Attention: ningxin hu <ningx...@intel.com>
    Gerrit-Comment-Date: Thu, 23 Jun 2022 03:41:03 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: Yes

    ningxin hu (Gerrit)

    unread,
    Jun 23, 2022, 2:55:29 AM6/23/22
    to blink-revie...@chromium.org, blink-...@chromium.org, jmedle...@chromium.org, Honglin Yu, Chromium LUCI CQ, Robert Ogden, Junwei, Matthew Denton, Alex Gough, Junwei Fu, Jonathan Bingham, Rafael Cintron, chromium...@chromium.org, Kentaro Hara

    Attention is currently required from: Honglin Yu.

    View Change

    1 comment:

    • Patchset:

      • Patch Set #13:

        Honglin, I fixed the build deps check failure in PS13, could you please help trigger another run? Thanks!

        BTW, how could I get the permission, so I can run trybots by myself without interfering you?

    To view, visit change 3684745. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I40141329eb339a09b51ab997769877135f4f056a
    Gerrit-Change-Number: 3684745
    Gerrit-PatchSet: 13
    Gerrit-Owner: ningxin hu <ningx...@intel.com>
    Gerrit-Reviewer: Alex Gough <aj...@chromium.org>
    Gerrit-Reviewer: Honglin Yu <hong...@chromium.org>
    Gerrit-Reviewer: Junwei Fu <junw...@intel.com>
    Gerrit-Reviewer: Robert Ogden <rober...@chromium.org>
    Gerrit-Reviewer: ningxin hu <ningx...@intel.com>
    Gerrit-CC: Jonathan Bingham <bing...@google.com>
    Gerrit-CC: Junwei <fujunw...@gmail.com>
    Gerrit-CC: Kentaro Hara <har...@chromium.org>
    Gerrit-CC: Matthew Denton <mpde...@chromium.org>
    Gerrit-CC: Rafael Cintron <rafael....@microsoft.com>
    Gerrit-Attention: Honglin Yu <hong...@chromium.org>
    Gerrit-Comment-Date: Thu, 23 Jun 2022 06:55:21 +0000

    Honglin Yu (Gerrit)

    unread,
    Jun 23, 2022, 3:03:15 AM6/23/22
    to ningxin hu, blink-revie...@chromium.org, blink-...@chromium.org, jmedle...@chromium.org, Chromium LUCI CQ, Robert Ogden, Junwei, Matthew Denton, Alex Gough, Junwei Fu, Jonathan Bingham, Rafael Cintron, chromium...@chromium.org, Kentaro Hara

    Attention is currently required from: ningxin hu.

    Patch set 13:Commit-Queue +1

    View Change

    1 comment:

    To view, visit change 3684745. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I40141329eb339a09b51ab997769877135f4f056a
    Gerrit-Change-Number: 3684745
    Gerrit-PatchSet: 13
    Gerrit-Owner: ningxin hu <ningx...@intel.com>
    Gerrit-Reviewer: Alex Gough <aj...@chromium.org>
    Gerrit-Reviewer: Honglin Yu <hong...@chromium.org>
    Gerrit-Reviewer: Junwei Fu <junw...@intel.com>
    Gerrit-Reviewer: Robert Ogden <rober...@chromium.org>
    Gerrit-Reviewer: ningxin hu <ningx...@intel.com>
    Gerrit-CC: Jonathan Bingham <bing...@google.com>
    Gerrit-CC: Junwei <fujunw...@gmail.com>
    Gerrit-CC: Kentaro Hara <har...@chromium.org>
    Gerrit-CC: Matthew Denton <mpde...@chromium.org>
    Gerrit-CC: Rafael Cintron <rafael....@microsoft.com>
    Gerrit-Attention: ningxin hu <ningx...@intel.com>
    Gerrit-Comment-Date: Thu, 23 Jun 2022 07:03:06 +0000

    Honglin Yu (Gerrit)

    unread,
    Jun 23, 2022, 3:03:46 AM6/23/22
    to ningxin hu, blink-revie...@chromium.org, blink-...@chromium.org, jmedle...@chromium.org, Chromium LUCI CQ, Robert Ogden, Junwei, Matthew Denton, Alex Gough, Junwei Fu, Jonathan Bingham, Rafael Cintron, chromium...@chromium.org, Kentaro Hara

    Attention is currently required from: ningxin hu.

    View Change

    1 comment:

    To view, visit change 3684745. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I40141329eb339a09b51ab997769877135f4f056a
    Gerrit-Change-Number: 3684745
    Gerrit-PatchSet: 13
    Gerrit-Owner: ningxin hu <ningx...@intel.com>
    Gerrit-Reviewer: Alex Gough <aj...@chromium.org>
    Gerrit-Reviewer: Honglin Yu <hong...@chromium.org>
    Gerrit-Reviewer: Junwei Fu <junw...@intel.com>
    Gerrit-Reviewer: Robert Ogden <rober...@chromium.org>
    Gerrit-Reviewer: ningxin hu <ningx...@intel.com>
    Gerrit-CC: Jonathan Bingham <bing...@google.com>
    Gerrit-CC: Junwei <fujunw...@gmail.com>
    Gerrit-CC: Kentaro Hara <har...@chromium.org>
    Gerrit-CC: Matthew Denton <mpde...@chromium.org>
    Gerrit-CC: Rafael Cintron <rafael....@microsoft.com>
    Gerrit-Attention: ningxin hu <ningx...@intel.com>
    Gerrit-Comment-Date: Thu, 23 Jun 2022 07:03:36 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No

    ningxin hu (Gerrit)

    unread,
    Jun 23, 2022, 3:11:00 AM6/23/22
    to blink-revie...@chromium.org, blink-...@chromium.org, jmedle...@chromium.org, Honglin Yu, Chromium LUCI CQ, Robert Ogden, Junwei, Matthew Denton, Alex Gough, Junwei Fu, Jonathan Bingham, Rafael Cintron, chromium...@chromium.org, Kentaro Hara

    Attention is currently required from: Honglin Yu.

    View Change

    1 comment:

    • Patchset:

      • Patch Set #13:

        I can help send email to acco...@chromium.org if you like.

        Yes, that would be extremely helpful, please help.

        You must provide an email address and at least a brief explanation of why you'd like access.

        ningx...@intel.com

        For implementing WebNN and WebML in Chromium

        It is helpful to provide a name and company affiliation (if any) as well.

        Intel

      • And no problem at all.

      • Thanks much Honglin!

    To view, visit change 3684745. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I40141329eb339a09b51ab997769877135f4f056a
    Gerrit-Change-Number: 3684745
    Gerrit-PatchSet: 13
    Gerrit-Owner: ningxin hu <ningx...@intel.com>
    Gerrit-Reviewer: Alex Gough <aj...@chromium.org>
    Gerrit-Reviewer: Honglin Yu <hong...@chromium.org>
    Gerrit-Reviewer: Junwei Fu <junw...@intel.com>
    Gerrit-Reviewer: Robert Ogden <rober...@chromium.org>
    Gerrit-Reviewer: ningxin hu <ningx...@intel.com>
    Gerrit-CC: Jonathan Bingham <bing...@google.com>
    Gerrit-CC: Junwei <fujunw...@gmail.com>
    Gerrit-CC: Kentaro Hara <har...@chromium.org>
    Gerrit-CC: Matthew Denton <mpde...@chromium.org>
    Gerrit-CC: Rafael Cintron <rafael....@microsoft.com>
    Gerrit-Attention: Honglin Yu <hong...@chromium.org>
    Gerrit-Comment-Date: Thu, 23 Jun 2022 07:10:52 +0000

    Honglin Yu (Gerrit)

    unread,
    Jun 23, 2022, 3:24:43 AM6/23/22
    to ningxin hu, blink-revie...@chromium.org, blink-...@chromium.org, jmedle...@chromium.org, Chromium LUCI CQ, Robert Ogden, Junwei, Matthew Denton, Alex Gough, Junwei Fu, Jonathan Bingham, Rafael Cintron, chromium...@chromium.org, Kentaro Hara

    Attention is currently required from: ningxin hu.

    View Change

    1 comment:

    • Patchset:

    To view, visit change 3684745. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I40141329eb339a09b51ab997769877135f4f056a
    Gerrit-Change-Number: 3684745
    Gerrit-PatchSet: 13
    Gerrit-Owner: ningxin hu <ningx...@intel.com>
    Gerrit-Reviewer: Alex Gough <aj...@chromium.org>
    Gerrit-Reviewer: Honglin Yu <hong...@chromium.org>
    Gerrit-Reviewer: Junwei Fu <junw...@intel.com>
    Gerrit-Reviewer: Robert Ogden <rober...@chromium.org>
    Gerrit-Reviewer: ningxin hu <ningx...@intel.com>
    Gerrit-CC: Jonathan Bingham <bing...@google.com>
    Gerrit-CC: Junwei <fujunw...@gmail.com>
    Gerrit-CC: Kentaro Hara <har...@chromium.org>
    Gerrit-CC: Matthew Denton <mpde...@chromium.org>
    Gerrit-CC: Rafael Cintron <rafael....@microsoft.com>
    Gerrit-Attention: ningxin hu <ningx...@intel.com>
    Gerrit-Comment-Date: Thu, 23 Jun 2022 07:24:33 +0000

    ningxin hu (Gerrit)

    unread,
    Jun 23, 2022, 4:14:45 AM6/23/22
    to blink-revie...@chromium.org, blink-...@chromium.org, jmedle...@chromium.org, Honglin Yu, Chromium LUCI CQ, Robert Ogden, Junwei, Matthew Denton, Alex Gough, Junwei Fu, Jonathan Bingham, Rafael Cintron, chromium...@chromium.org, Kentaro Hara

    Attention is currently required from: Honglin Yu.

    View Change

    1 comment:

    • Patchset:

      • Patch Set #13:

        No problem. I have already sent the email and CC'd you, please check your inbox.

        received, thanks!

    To view, visit change 3684745. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I40141329eb339a09b51ab997769877135f4f056a
    Gerrit-Change-Number: 3684745
    Gerrit-PatchSet: 13
    Gerrit-Owner: ningxin hu <ningx...@intel.com>
    Gerrit-Reviewer: Alex Gough <aj...@chromium.org>
    Gerrit-Reviewer: Honglin Yu <hong...@chromium.org>
    Gerrit-Reviewer: Junwei Fu <junw...@intel.com>
    Gerrit-Reviewer: Robert Ogden <rober...@chromium.org>
    Gerrit-Reviewer: ningxin hu <ningx...@intel.com>
    Gerrit-CC: Jonathan Bingham <bing...@google.com>
    Gerrit-CC: Junwei <fujunw...@gmail.com>
    Gerrit-CC: Kentaro Hara <har...@chromium.org>
    Gerrit-CC: Matthew Denton <mpde...@chromium.org>
    Gerrit-CC: Rafael Cintron <rafael....@microsoft.com>
    Gerrit-Attention: Honglin Yu <hong...@chromium.org>
    Gerrit-Comment-Date: Thu, 23 Jun 2022 08:14:37 +0000

    Lisha Guo (Gerrit)

    unread,
    Jun 23, 2022, 4:35:31 AM6/23/22
    to ningxin hu, blink-revie...@chromium.org, blink-...@chromium.org, jmedle...@chromium.org, Honglin Yu, Chromium LUCI CQ, Robert Ogden, Junwei, Matthew Denton, Alex Gough, Junwei Fu, Jonathan Bingham, Rafael Cintron, chromium...@chromium.org, Kentaro Hara

    Attention is currently required from: Honglin Yu, ningxin hu.

    View Change

    3 comments:

    • Patchset:

    • File third_party/blink/renderer/modules/ml/webnn/ml_graph_builder.cc:

      • Patch Set #13, Line 187: if (options->hasBias()) {

        According to the W3C webnn spec, the bias should be a 1-D tensor with the shape of [output_channels]

      • Patch Set #13, Line 251: if (input_channels % options->groups() == 0 &&

        Exception still needs to be thrown if (input_channels % options->groups != 0).

    To view, visit change 3684745. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I40141329eb339a09b51ab997769877135f4f056a
    Gerrit-Change-Number: 3684745
    Gerrit-PatchSet: 13
    Gerrit-Owner: ningxin hu <ningx...@intel.com>
    Gerrit-Reviewer: Alex Gough <aj...@chromium.org>
    Gerrit-Reviewer: Honglin Yu <hong...@chromium.org>
    Gerrit-Reviewer: Junwei Fu <junw...@intel.com>
    Gerrit-Reviewer: Robert Ogden <rober...@chromium.org>
    Gerrit-Reviewer: ningxin hu <ningx...@intel.com>
    Gerrit-CC: Jonathan Bingham <bing...@google.com>
    Gerrit-CC: Junwei <fujunw...@gmail.com>
    Gerrit-CC: Kentaro Hara <har...@chromium.org>
    Gerrit-CC: Lisha Guo <lish...@intel.corp-partner.google.com>
    Gerrit-CC: Matthew Denton <mpde...@chromium.org>
    Gerrit-CC: Rafael Cintron <rafael....@microsoft.com>
    Gerrit-Attention: ningxin hu <ningx...@intel.com>
    Gerrit-Attention: Honglin Yu <hong...@chromium.org>
    Gerrit-Comment-Date: Thu, 23 Jun 2022 08:35:23 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Gerrit-MessageType: comment

    Honglin Yu (Gerrit)

    unread,
    Jun 23, 2022, 5:24:20 AM6/23/22
    to ningxin hu, blink-revie...@chromium.org, blink-...@chromium.org, jmedle...@chromium.org, Lisha Guo, Chromium LUCI CQ, Robert Ogden, Junwei, Matthew Denton, Alex Gough, Junwei Fu, Jonathan Bingham, Rafael Cintron, chromium...@chromium.org, Kentaro Hara

    Attention is currently required from: ningxin hu.

    View Change

    1 comment:

    • Patchset:

      • Patch Set #13:

        > No problem. I have already sent the email and CC'd you, please check your inbox. […]

        No problem. Glad to help!

    To view, visit change 3684745. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I40141329eb339a09b51ab997769877135f4f056a
    Gerrit-Change-Number: 3684745
    Gerrit-PatchSet: 13
    Gerrit-Owner: ningxin hu <ningx...@intel.com>
    Gerrit-Reviewer: Alex Gough <aj...@chromium.org>
    Gerrit-Reviewer: Honglin Yu <hong...@chromium.org>
    Gerrit-Reviewer: Junwei Fu <junw...@intel.com>
    Gerrit-Reviewer: Robert Ogden <rober...@chromium.org>
    Gerrit-Reviewer: ningxin hu <ningx...@intel.com>
    Gerrit-CC: Jonathan Bingham <bing...@google.com>
    Gerrit-CC: Junwei <fujunw...@gmail.com>
    Gerrit-CC: Kentaro Hara <har...@chromium.org>
    Gerrit-CC: Lisha Guo <lish...@intel.corp-partner.google.com>
    Gerrit-CC: Matthew Denton <mpde...@chromium.org>
    Gerrit-CC: Rafael Cintron <rafael....@microsoft.com>
    Gerrit-Attention: ningxin hu <ningx...@intel.com>
    Gerrit-Comment-Date: Thu, 23 Jun 2022 09:24:11 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No

    ningxin hu (Gerrit)

    unread,
    Jun 23, 2022, 8:47:30 AM6/23/22
    to blink-revie...@chromium.org, blink-...@chromium.org, jmedle...@chromium.org, Lisha Guo, Honglin Yu, Chromium LUCI CQ, Robert Ogden, Junwei, Matthew Denton, Alex Gough, Junwei Fu, Jonathan Bingham, Rafael Cintron, chromium...@chromium.org, Kentaro Hara

    Attention is currently required from: Lisha Guo.

    View Change

    1 comment:

    • Patchset:

      • Patch Set #13:

        Add some suggestions about validations.

        Good catch, thanks Lisha. I'll address them in following patch set.

    To view, visit change 3684745. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I40141329eb339a09b51ab997769877135f4f056a
    Gerrit-Change-Number: 3684745
    Gerrit-PatchSet: 13
    Gerrit-Owner: ningxin hu <ningx...@intel.com>
    Gerrit-Reviewer: Alex Gough <aj...@chromium.org>
    Gerrit-Reviewer: Honglin Yu <hong...@chromium.org>
    Gerrit-Reviewer: Junwei Fu <junw...@intel.com>
    Gerrit-Reviewer: Robert Ogden <rober...@chromium.org>
    Gerrit-Reviewer: ningxin hu <ningx...@intel.com>
    Gerrit-CC: Jonathan Bingham <bing...@google.com>
    Gerrit-CC: Junwei <fujunw...@gmail.com>
    Gerrit-CC: Kentaro Hara <har...@chromium.org>
    Gerrit-CC: Lisha Guo <lish...@intel.corp-partner.google.com>
    Gerrit-CC: Matthew Denton <mpde...@chromium.org>
    Gerrit-CC: Rafael Cintron <rafael....@microsoft.com>
    Gerrit-Attention: Lisha Guo <lish...@intel.corp-partner.google.com>
    Gerrit-Comment-Date: Thu, 23 Jun 2022 12:47:21 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Lisha Guo <lish...@intel.corp-partner.google.com>
    Gerrit-MessageType: comment

    ningxin hu (Gerrit)

    unread,
    Jun 23, 2022, 8:58:32 AM6/23/22
    to blink-revie...@chromium.org, blink-...@chromium.org, jmedle...@chromium.org, Lisha Guo, Honglin Yu, Chromium LUCI CQ, Robert Ogden, Junwei, Matthew Denton, Alex Gough, Junwei Fu, Jonathan Bingham, Rafael Cintron, chromium...@chromium.org, Kentaro Hara

    Attention is currently required from: Honglin Yu.

    View Change

    1 comment:

    • Patchset:

      • Patch Set #13:

        Regarding to the failed try bots, I'll fix them by:
        1. Only enable WebNN XNNPACK backend for Windows10 and Linux on X86 architecture because the XNNPACK lib fails to build for other platforms.
        2. Update the WPT test expectations to reflect the new features.

    To view, visit change 3684745. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I40141329eb339a09b51ab997769877135f4f056a
    Gerrit-Change-Number: 3684745
    Gerrit-PatchSet: 13
    Gerrit-Owner: ningxin hu <ningx...@intel.com>
    Gerrit-Reviewer: Alex Gough <aj...@chromium.org>
    Gerrit-Reviewer: Honglin Yu <hong...@chromium.org>
    Gerrit-Reviewer: Junwei Fu <junw...@intel.com>
    Gerrit-Reviewer: Robert Ogden <rober...@chromium.org>
    Gerrit-Reviewer: ningxin hu <ningx...@intel.com>
    Gerrit-CC: Jonathan Bingham <bing...@google.com>
    Gerrit-CC: Junwei <fujunw...@gmail.com>
    Gerrit-CC: Kentaro Hara <har...@chromium.org>
    Gerrit-CC: Lisha Guo <lish...@intel.corp-partner.google.com>
    Gerrit-CC: Matthew Denton <mpde...@chromium.org>
    Gerrit-CC: Rafael Cintron <rafael....@microsoft.com>
    Gerrit-Attention: Honglin Yu <hong...@chromium.org>
    Gerrit-Comment-Date: Thu, 23 Jun 2022 12:58:24 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Gerrit-MessageType: comment

    ningxin hu (Gerrit)

    unread,
    Jun 24, 2022, 4:39:30 AM6/24/22
    to blink-revie...@chromium.org, blink-...@chromium.org, jmedle...@chromium.org, Lisha Guo, Honglin Yu, Chromium LUCI CQ, Robert Ogden, Junwei, Matthew Denton, Alex Gough, Junwei Fu, Jonathan Bingham, Rafael Cintron, chromium...@chromium.org, Kentaro Hara

    Attention is currently required from: Honglin Yu, Lisha Guo.

    View Change

    4 comments:

    • Patchset:

      • Patch Set #13:

        Regarding to the failed try bots, I'll fix them by: […]

        Fixed in PS14.

    • Patchset:

      • Patch Set #14:

        PS14 tries to fix the trybots failures.

        Honglin, if possible, please help trigger the trybots again to check the results. Thanks!

    • File third_party/blink/renderer/modules/ml/webnn/ml_graph_builder.cc:

      • Patch Set #13, Line 187: if (options->hasBias()) {

        According to the W3C webnn spec, the bias should be a 1-D tensor with the shape of [output_channels]

      • Fixed in PS14, please take another look. Thanks.

      • Patch Set #13, Line 251: if (input_channels % options->groups() == 0 &&

        Exception still needs to be thrown if (input_channels % options->groups != 0).

      • ditto.

    To view, visit change 3684745. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I40141329eb339a09b51ab997769877135f4f056a
    Gerrit-Change-Number: 3684745
    Gerrit-PatchSet: 14
    Gerrit-Owner: ningxin hu <ningx...@intel.com>
    Gerrit-Reviewer: Alex Gough <aj...@chromium.org>
    Gerrit-Reviewer: Honglin Yu <hong...@chromium.org>
    Gerrit-Reviewer: Junwei Fu <junw...@intel.com>
    Gerrit-Reviewer: Robert Ogden <rober...@chromium.org>
    Gerrit-Reviewer: ningxin hu <ningx...@intel.com>
    Gerrit-CC: Jonathan Bingham <bing...@google.com>
    Gerrit-CC: Junwei <fujunw...@gmail.com>
    Gerrit-CC: Kentaro Hara <har...@chromium.org>
    Gerrit-CC: Lisha Guo <lish...@intel.corp-partner.google.com>
    Gerrit-CC: Matthew Denton <mpde...@chromium.org>
    Gerrit-CC: Rafael Cintron <rafael....@microsoft.com>
    Gerrit-Attention: Lisha Guo <lish...@intel.corp-partner.google.com>
    Gerrit-Attention: Honglin Yu <hong...@chromium.org>
    Gerrit-Comment-Date: Fri, 24 Jun 2022 08:39:22 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: ningxin hu <ningx...@intel.com>

    ningxin hu (Gerrit)

    unread,
    Jun 26, 2022, 10:01:14 PM6/26/22
    to blink-revie...@chromium.org, blink-...@chromium.org, jmedle...@chromium.org, Lisha Guo, Honglin Yu, Chromium LUCI CQ, Robert Ogden, Junwei, Matthew Denton, Alex Gough, Junwei Fu, Jonathan Bingham, Rafael Cintron, chromium...@chromium.org, Kentaro Hara

    Attention is currently required from: Honglin Yu.

    View Change

    1 comment:

    • Patchset:

      • Patch Set #15:

        Honglin, it seems I am still not able to run the trybots. Could you please help trigger once more? Thanks!

    To view, visit change 3684745. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I40141329eb339a09b51ab997769877135f4f056a
    Gerrit-Change-Number: 3684745
    Gerrit-PatchSet: 15
    Gerrit-Owner: ningxin hu <ningx...@intel.com>
    Gerrit-Reviewer: Alex Gough <aj...@chromium.org>
    Gerrit-Reviewer: Honglin Yu <hong...@chromium.org>
    Gerrit-Reviewer: Junwei Fu <junw...@intel.com>
    Gerrit-Reviewer: Robert Ogden <rober...@chromium.org>
    Gerrit-Reviewer: ningxin hu <ningx...@intel.com>
    Gerrit-CC: Jonathan Bingham <bing...@google.com>
    Gerrit-CC: Junwei <fujunw...@gmail.com>
    Gerrit-CC: Kentaro Hara <har...@chromium.org>
    Gerrit-CC: Lisha Guo <lish...@intel.corp-partner.google.com>
    Gerrit-CC: Matthew Denton <mpde...@chromium.org>
    Gerrit-CC: Rafael Cintron <rafael....@microsoft.com>
    Gerrit-Attention: Honglin Yu <hong...@chromium.org>
    Gerrit-Comment-Date: Mon, 27 Jun 2022 02:01:06 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Gerrit-MessageType: comment

    Honglin Yu (Gerrit)

    unread,
    Jun 26, 2022, 10:11:36 PM6/26/22
    to ningxin hu, blink-revie...@chromium.org, blink-...@chromium.org, jmedle...@chromium.org, Lisha Guo, Chromium LUCI CQ, Robert Ogden, Junwei, Matthew Denton, Alex Gough, Junwei Fu, Jonathan Bingham, Rafael Cintron, chromium...@chromium.org, Kentaro Hara

    Attention is currently required from: ningxin hu.

    Patch set 15:Commit-Queue +1

    View Change

    1 comment:

    • Patchset:

      • Patch Set #15:

        Honglin, it seems I am still not able to run the trybots. […]

        Sure. Just let me know whenever you want to give it a go.

    To view, visit change 3684745. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I40141329eb339a09b51ab997769877135f4f056a
    Gerrit-Change-Number: 3684745
    Gerrit-PatchSet: 15
    Gerrit-Owner: ningxin hu <ningx...@intel.com>
    Gerrit-Reviewer: Alex Gough <aj...@chromium.org>
    Gerrit-Reviewer: Honglin Yu <hong...@chromium.org>
    Gerrit-Reviewer: Junwei Fu <junw...@intel.com>
    Gerrit-Reviewer: Robert Ogden <rober...@chromium.org>
    Gerrit-Reviewer: ningxin hu <ningx...@intel.com>
    Gerrit-CC: Jonathan Bingham <bing...@google.com>
    Gerrit-CC: Junwei <fujunw...@gmail.com>
    Gerrit-CC: Kentaro Hara <har...@chromium.org>
    Gerrit-CC: Lisha Guo <lish...@intel.corp-partner.google.com>
    Gerrit-CC: Matthew Denton <mpde...@chromium.org>
    Gerrit-CC: Rafael Cintron <rafael....@microsoft.com>
    Gerrit-Attention: ningxin hu <ningx...@intel.com>
    Gerrit-Comment-Date: Mon, 27 Jun 2022 02:11:28 +0000

    Lisha Guo (Gerrit)

    unread,
    Jun 27, 2022, 7:28:53 AM6/27/22
    to ningxin hu, blink-revie...@chromium.org, blink-...@chromium.org, jmedle...@chromium.org, Honglin Yu, Chromium LUCI CQ, Robert Ogden, Junwei, Matthew Denton, Alex Gough, Junwei Fu, Jonathan Bingham, Rafael Cintron, chromium...@chromium.org, Kentaro Hara

    Attention is currently required from: Honglin Yu, ningxin hu.

    View Change

    3 comments:

    • Patchset:

    • File third_party/blink/renderer/modules/ml/webnn/ml_graph_builder.cc:

      • Fixed in PS14, please take another look. Thanks.

        Done

      • ditto.

        Done

    To view, visit change 3684745. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I40141329eb339a09b51ab997769877135f4f056a
    Gerrit-Change-Number: 3684745
    Gerrit-PatchSet: 15
    Gerrit-Owner: ningxin hu <ningx...@intel.com>
    Gerrit-Reviewer: Alex Gough <aj...@chromium.org>
    Gerrit-Reviewer: Honglin Yu <hong...@chromium.org>
    Gerrit-Reviewer: Junwei Fu <junw...@intel.com>
    Gerrit-Reviewer: Robert Ogden <rober...@chromium.org>
    Gerrit-Reviewer: ningxin hu <ningx...@intel.com>
    Gerrit-CC: Jonathan Bingham <bing...@google.com>
    Gerrit-CC: Junwei <fujunw...@gmail.com>
    Gerrit-CC: Kentaro Hara <har...@chromium.org>
    Gerrit-CC: Lisha Guo <lish...@intel.corp-partner.google.com>
    Gerrit-CC: Matthew Denton <mpde...@chromium.org>
    Gerrit-CC: Rafael Cintron <rafael....@microsoft.com>
    Gerrit-Attention: ningxin hu <ningx...@intel.com>
    Gerrit-Attention: Honglin Yu <hong...@chromium.org>
    Gerrit-Comment-Date: Mon, 27 Jun 2022 11:28:45 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No

    Lisha Guo (Gerrit)

    unread,
    Jun 27, 2022, 8:18:07 AM6/27/22
    to ningxin hu, blink-revie...@chromium.org, blink-...@chromium.org, jmedle...@chromium.org, Honglin Yu, Chromium LUCI CQ, Robert Ogden, Junwei, Matthew Denton, Alex Gough, Junwei Fu, Jonathan Bingham, Rafael Cintron, chromium...@chromium.org, Kentaro Hara

    Attention is currently required from: Honglin Yu, ningxin hu.

    View Change

    2 comments:

    • Patchset:

    • File third_party/blink/renderer/modules/ml/webnn/ml_graph_builder.cc:

      • Patch Set #15, Line 607: if (!CalculatePaddingForAutoPad(options->autoPad().AsEnum(),

        Here the sequence of the parameters of `CalculatePaddingForAutoPad` is not align with the function declaration.

    To view, visit change 3684745. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I40141329eb339a09b51ab997769877135f4f056a
    Gerrit-Change-Number: 3684745
    Gerrit-PatchSet: 15
    Gerrit-Owner: ningxin hu <ningx...@intel.com>
    Gerrit-Reviewer: Alex Gough <aj...@chromium.org>
    Gerrit-Reviewer: Honglin Yu <hong...@chromium.org>
    Gerrit-Reviewer: Junwei Fu <junw...@intel.com>
    Gerrit-Reviewer: Robert Ogden <rober...@chromium.org>
    Gerrit-Reviewer: ningxin hu <ningx...@intel.com>
    Gerrit-CC: Jonathan Bingham <bing...@google.com>
    Gerrit-CC: Junwei <fujunw...@gmail.com>
    Gerrit-CC: Kentaro Hara <har...@chromium.org>
    Gerrit-CC: Lisha Guo <lish...@intel.corp-partner.google.com>
    Gerrit-CC: Matthew Denton <mpde...@chromium.org>
    Gerrit-CC: Rafael Cintron <rafael....@microsoft.com>
    Gerrit-Attention: ningxin hu <ningx...@intel.com>
    Gerrit-Attention: Honglin Yu <hong...@chromium.org>
    Gerrit-Comment-Date: Mon, 27 Jun 2022 12:17:55 +0000

    ningxin hu (Gerrit)

    unread,
    Jun 28, 2022, 7:57:15 AM6/28/22
    to blink-revie...@chromium.org, blink-...@chromium.org, jmedle...@chromium.org, Honglin Yu, Lisha Guo, Chromium LUCI CQ, Robert Ogden, Junwei, Matthew Denton, Alex Gough, Junwei Fu, Jonathan Bingham, Rafael Cintron, chromium...@chromium.org, Kentaro Hara

    Attention is currently required from: Honglin Yu, Lisha Guo.

    View Change

    2 comments:

    • Patchset:

      • Patch Set #16:

        Upload PS16 that fixes:
        1. XNNPACK build issue on some trybots
        2. Pool2d padding calculation issue

        Honglin, could you please help trigger the trybots? Thanks!

    • File third_party/blink/renderer/modules/ml/webnn/ml_graph_builder.cc:

      • Here the sequence of the parameters of `CalculatePaddingForAutoPad` is not align with the function d […]

        good catch, thanks Lisha! Fixed it in PS16. Please take another look.

    To view, visit change 3684745. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I40141329eb339a09b51ab997769877135f4f056a
    Gerrit-Change-Number: 3684745
    Gerrit-PatchSet: 16
    Gerrit-Owner: ningxin hu <ningx...@intel.com>
    Gerrit-Reviewer: Alex Gough <aj...@chromium.org>
    Gerrit-Reviewer: Honglin Yu <hong...@chromium.org>
    Gerrit-Reviewer: Junwei Fu <junw...@intel.com>
    Gerrit-Reviewer: Robert Ogden <rober...@chromium.org>
    Gerrit-Reviewer: ningxin hu <ningx...@intel.com>
    Gerrit-CC: Jonathan Bingham <bing...@google.com>
    Gerrit-CC: Junwei <fujunw...@gmail.com>
    Gerrit-CC: Kentaro Hara <har...@chromium.org>
    Gerrit-CC: Lisha Guo <lish...@intel.corp-partner.google.com>
    Gerrit-CC: Matthew Denton <mpde...@chromium.org>
    Gerrit-CC: Rafael Cintron <rafael....@microsoft.com>
    Gerrit-Attention: Lisha Guo <lish...@intel.corp-partner.google.com>
    Gerrit-Attention: Honglin Yu <hong...@chromium.org>
    Gerrit-Comment-Date: Tue, 28 Jun 2022 11:57:08 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No

    Honglin Yu (Gerrit)

    unread,
    Jun 28, 2022, 4:57:35 PM6/28/22
    to ningxin hu, blink-revie...@chromium.org, blink-...@chromium.org, jmedle...@chromium.org, Lisha Guo, Chromium LUCI CQ, Robert Ogden, Junwei, Matthew Denton, Alex Gough, Junwei Fu, Jonathan Bingham, Rafael Cintron, chromium...@chromium.org, Kentaro Hara

    Attention is currently required from: Lisha Guo, ningxin hu.

    Patch set 16:Commit-Queue +1

    View Change

    1 comment:

    To view, visit change 3684745. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I40141329eb339a09b51ab997769877135f4f056a
    Gerrit-Change-Number: 3684745
    Gerrit-PatchSet: 16
    Gerrit-Owner: ningxin hu <ningx...@intel.com>
    Gerrit-Reviewer: Alex Gough <aj...@chromium.org>
    Gerrit-Reviewer: Honglin Yu <hong...@chromium.org>
    Gerrit-Reviewer: Junwei Fu <junw...@intel.com>
    Gerrit-Reviewer: Robert Ogden <rober...@chromium.org>
    Gerrit-Reviewer: ningxin hu <ningx...@intel.com>
    Gerrit-CC: Jonathan Bingham <bing...@google.com>
    Gerrit-CC: Junwei <fujunw...@gmail.com>
    Gerrit-CC: Kentaro Hara <har...@chromium.org>
    Gerrit-CC: Lisha Guo <lish...@intel.corp-partner.google.com>
    Gerrit-CC: Matthew Denton <mpde...@chromium.org>
    Gerrit-CC: Rafael Cintron <rafael....@microsoft.com>
    Gerrit-Attention: ningxin hu <ningx...@intel.com>
    Gerrit-Attention: Lisha Guo <lish...@intel.corp-partner.google.com>
    Gerrit-Comment-Date: Tue, 28 Jun 2022 20:57:21 +0000

    ningxin hu (Gerrit)

    unread,
    Jun 28, 2022, 8:02:40 PM6/28/22
    to blink-revie...@chromium.org, blink-...@chromium.org, jmedle...@chromium.org, Honglin Yu, Lisha Guo, Chromium LUCI CQ, Robert Ogden, Junwei, Matthew Denton, Alex Gough, Junwei Fu, Jonathan Bingham, Rafael Cintron, chromium...@chromium.org, Kentaro Hara

    Attention is currently required from: Honglin Yu, Lisha Guo.

    View Change

    1 comment:

    To view, visit change 3684745. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I40141329eb339a09b51ab997769877135f4f056a
    Gerrit-Change-Number: 3684745
    Gerrit-PatchSet: 16
    Gerrit-Owner: ningxin hu <ningx...@intel.com>
    Gerrit-Reviewer: Alex Gough <aj...@chromium.org>
    Gerrit-Reviewer: Honglin Yu <hong...@chromium.org>
    Gerrit-Reviewer: Junwei Fu <junw...@intel.com>
    Gerrit-Reviewer: Robert Ogden <rober...@chromium.org>
    Gerrit-Reviewer: ningxin hu <ningx...@intel.com>
    Gerrit-CC: Jonathan Bingham <bing...@google.com>
    Gerrit-CC: Junwei <fujunw...@gmail.com>
    Gerrit-CC: Kentaro Hara <har...@chromium.org>
    Gerrit-CC: Lisha Guo <lish...@intel.corp-partner.google.com>
    Gerrit-CC: Matthew Denton <mpde...@chromium.org>
    Gerrit-CC: Rafael Cintron <rafael....@microsoft.com>
    Gerrit-Attention: Lisha Guo <lish...@intel.corp-partner.google.com>
    Gerrit-Attention: Honglin Yu <hong...@chromium.org>
    Gerrit-Comment-Date: Wed, 29 Jun 2022 00:02:28 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Gerrit-MessageType: comment

    Honglin Yu (Gerrit)

    unread,
    Jun 28, 2022, 8:15:16 PM6/28/22
    to ningxin hu, blink-revie...@chromium.org, blink-...@chromium.org, jmedle...@chromium.org, Lisha Guo, Chromium LUCI CQ, Robert Ogden, Junwei, Matthew Denton, Alex Gough, Junwei Fu, Jonathan Bingham, Rafael Cintron, chromium...@chromium.org, Kentaro Hara

    Attention is currently required from: Lisha Guo, ningxin hu.

    Patch set 16:Commit-Queue +1

    View Change

    1 comment:

    • Patchset:

      • Patch Set #16:

        Thanks for the dry run, Honglin. […]

        it should be an infra failure. Let's try it again using the cq.

    To view, visit change 3684745. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I40141329eb339a09b51ab997769877135f4f056a
    Gerrit-Change-Number: 3684745
    Gerrit-PatchSet: 16
    Gerrit-Owner: ningxin hu <ningx...@intel.com>
    Gerrit-Reviewer: Alex Gough <aj...@chromium.org>
    Gerrit-Reviewer: Honglin Yu <hong...@chromium.org>
    Gerrit-Reviewer: Junwei Fu <junw...@intel.com>
    Gerrit-Reviewer: Robert Ogden <rober...@chromium.org>
    Gerrit-Reviewer: ningxin hu <ningx...@intel.com>
    Gerrit-CC: Jonathan Bingham <bing...@google.com>
    Gerrit-CC: Junwei <fujunw...@gmail.com>
    Gerrit-CC: Kentaro Hara <har...@chromium.org>
    Gerrit-CC: Lisha Guo <lish...@intel.corp-partner.google.com>
    Gerrit-CC: Matthew Denton <mpde...@chromium.org>
    Gerrit-CC: Rafael Cintron <rafael....@microsoft.com>
    Gerrit-Attention: ningxin hu <ningx...@intel.com>
    Gerrit-Attention: Lisha Guo <lish...@intel.corp-partner.google.com>
    Gerrit-Comment-Date: Wed, 29 Jun 2022 00:15:07 +0000

    ningxin hu (Gerrit)

    unread,
    Jun 28, 2022, 10:34:33 PM6/28/22
    to blink-revie...@chromium.org, blink-...@chromium.org, jmedle...@chromium.org, Honglin Yu, Lisha Guo, Chromium LUCI CQ, Robert Ogden, Junwei, Matthew Denton, Alex Gough, Junwei Fu, Jonathan Bingham, Rafael Cintron, chromium...@chromium.org, Kentaro Hara

    Attention is currently required from: Alex Gough, Honglin Yu.

    View Change

    1 comment:

    • Patchset:

      • Patch Set #16:

        Thanks Honglin. The PS16 passed the trybots.

        Honglin and Alex, could you please take another look? In particular, the base numeric usage for shape calculation and the implementation of the async call. Thanks!

    To view, visit change 3684745. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I40141329eb339a09b51ab997769877135f4f056a
    Gerrit-Change-Number: 3684745
    Gerrit-PatchSet: 16
    Gerrit-Owner: ningxin hu <ningx...@intel.com>
    Gerrit-Reviewer: Alex Gough <aj...@chromium.org>
    Gerrit-Reviewer: Honglin Yu <hong...@chromium.org>
    Gerrit-Reviewer: Junwei Fu <junw...@intel.com>
    Gerrit-Reviewer: Robert Ogden <rober...@chromium.org>
    Gerrit-Reviewer: ningxin hu <ningx...@intel.com>
    Gerrit-CC: Jonathan Bingham <bing...@google.com>
    Gerrit-CC: Junwei <fujunw...@gmail.com>
    Gerrit-CC: Kentaro Hara <har...@chromium.org>
    Gerrit-CC: Lisha Guo <lish...@intel.corp-partner.google.com>
    Gerrit-CC: Matthew Denton <mpde...@chromium.org>
    Gerrit-CC: Rafael Cintron <rafael....@microsoft.com>
    Gerrit-Attention: Alex Gough <aj...@chromium.org>
    Gerrit-Attention: Honglin Yu <hong...@chromium.org>
    Gerrit-Comment-Date: Wed, 29 Jun 2022 02:34:25 +0000

    Honglin Yu (Gerrit)

    unread,
    Jun 28, 2022, 11:09:17 PM6/28/22
    to ningxin hu, blink-revie...@chromium.org, blink-...@chromium.org, jmedle...@chromium.org, Lisha Guo, Chromium LUCI CQ, Robert Ogden, Junwei, Matthew Denton, Alex Gough, Junwei Fu, Jonathan Bingham, Rafael Cintron, chromium...@chromium.org, Kentaro Hara

    Attention is currently required from: Alex Gough, ningxin hu.

    View Change

    1 comment:

    • Patchset:

      • Patch Set #16:

        Thanks Honglin. The PS16 passed the trybots. […]

        No problem, Ningxin! I will take another look when I have bandwidth.

        The opinions of Alex and other security reviewers should be more important here. And besides security, I am wondering whether the threading model is acceptable? For example, should we run the computation in the threadpool or main thread? I have been thinking about this but didn't find the answer yet.

    To view, visit change 3684745. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I40141329eb339a09b51ab997769877135f4f056a
    Gerrit-Change-Number: 3684745
    Gerrit-PatchSet: 16
    Gerrit-Owner: ningxin hu <ningx...@intel.com>
    Gerrit-Reviewer: Alex Gough <aj...@chromium.org>
    Gerrit-Reviewer: Honglin Yu <hong...@chromium.org>
    Gerrit-Reviewer: Junwei Fu <junw...@intel.com>
    Gerrit-Reviewer: Robert Ogden <rober...@chromium.org>
    Gerrit-Reviewer: ningxin hu <ningx...@intel.com>
    Gerrit-CC: Jonathan Bingham <bing...@google.com>
    Gerrit-CC: Junwei <fujunw...@gmail.com>
    Gerrit-CC: Kentaro Hara <har...@chromium.org>
    Gerrit-CC: Lisha Guo <lish...@intel.corp-partner.google.com>
    Gerrit-CC: Matthew Denton <mpde...@chromium.org>
    Gerrit-CC: Rafael Cintron <rafael....@microsoft.com>
    Gerrit-Attention: Alex Gough <aj...@chromium.org>
    Gerrit-Attention: ningxin hu <ningx...@intel.com>
    Gerrit-Comment-Date: Wed, 29 Jun 2022 03:09:08 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No

    ningxin hu (Gerrit)

    unread,
    Jun 29, 2022, 1:27:48 AM6/29/22
    to blink-revie...@chromium.org, blink-...@chromium.org, jmedle...@chromium.org, Honglin Yu, Lisha Guo, Chromium LUCI CQ, Robert Ogden, Junwei, Matthew Denton, Alex Gough, Junwei Fu, Jonathan Bingham, Rafael Cintron, chromium...@chromium.org, Kentaro Hara

    Attention is currently required from: Alex Gough, Honglin Yu.

    View Change

    1 comment:

    • Patchset:

      • Patch Set #16:

        No problem, Ningxin! I will take another look when I have bandwidth. […]

        Thanks Honglin.

        Regarding to the threading model, in the latest implementation, both graph computation and build run in the threadpool.

        There are some details:
        1. The async graph build/compute (MLGraphXnnpack::BuildImpl/ComputeImpl) post (worker_pool::PostTask) and run the actual build/compute task (MLGraphXnnpack::BuildOnBackgroundThread/ComputeOnBackgroundThread) in a worker thread.
        2. The sync graph build/compute (MLGraphXnnpack::BuildSyncImpl/ComputeSyncImpl) run in the invoking thread. As the sync methods are only exposed to worker, the actual graph build/compute also run off the main thread.
        3. XNNPACK has its own pthreadpool to run its operators computation parallelly. The current implementation configures the number of threads as half of the number of logical cores.

        What do you think about this design?

    To view, visit change 3684745. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I40141329eb339a09b51ab997769877135f4f056a
    Gerrit-Change-Number: 3684745
    Gerrit-PatchSet: 16
    Gerrit-Owner: ningxin hu <ningx...@intel.com>
    Gerrit-Reviewer: Alex Gough <aj...@chromium.org>
    Gerrit-Reviewer: Honglin Yu <hong...@chromium.org>
    Gerrit-Reviewer: Junwei Fu <junw...@intel.com>
    Gerrit-Reviewer: Robert Ogden <rober...@chromium.org>
    Gerrit-Reviewer: ningxin hu <ningx...@intel.com>
    Gerrit-CC: Jonathan Bingham <bing...@google.com>
    Gerrit-CC: Junwei <fujunw...@gmail.com>
    Gerrit-CC: Kentaro Hara <har...@chromium.org>
    Gerrit-CC: Lisha Guo <lish...@intel.corp-partner.google.com>
    Gerrit-CC: Matthew Denton <mpde...@chromium.org>
    Gerrit-CC: Rafael Cintron <rafael....@microsoft.com>
    Gerrit-Attention: Alex Gough <aj...@chromium.org>
    Gerrit-Attention: Honglin Yu <hong...@chromium.org>
    Gerrit-Comment-Date: Wed, 29 Jun 2022 05:27:40 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: ningxin hu <ningx...@intel.com>

    Lisha Guo (Gerrit)

    unread,
    Jun 29, 2022, 3:36:05 AM6/29/22
    to ningxin hu, blink-revie...@chromium.org, blink-...@chromium.org, jmedle...@chromium.org, Honglin Yu, Chromium LUCI CQ, Robert Ogden, Junwei, Matthew Denton, Alex Gough, Junwei Fu, Jonathan Bingham, Rafael Cintron, chromium...@chromium.org, Kentaro Hara

    Attention is currently required from: Alex Gough, Honglin Yu, ningxin hu.

    View Change

    1 comment:

    • File third_party/blink/renderer/modules/ml/webnn/ml_graph_builder.cc:

      • good catch, thanks Lisha! Fixed it in PS16. Please take another look.

        Done

    To view, visit change 3684745. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I40141329eb339a09b51ab997769877135f4f056a
    Gerrit-Change-Number: 3684745
    Gerrit-PatchSet: 16
    Gerrit-Owner: ningxin hu <ningx...@intel.com>
    Gerrit-Reviewer: Alex Gough <aj...@chromium.org>
    Gerrit-Reviewer: Honglin Yu <hong...@chromium.org>
    Gerrit-Reviewer: Junwei Fu <junw...@intel.com>
    Gerrit-Reviewer: Robert Ogden <rober...@chromium.org>
    Gerrit-Reviewer: ningxin hu <ningx...@intel.com>
    Gerrit-CC: Jonathan Bingham <bing...@google.com>
    Gerrit-CC: Junwei <fujunw...@gmail.com>
    Gerrit-CC: Kentaro Hara <har...@chromium.org>
    Gerrit-CC: Lisha Guo <lish...@intel.corp-partner.google.com>
    Gerrit-CC: Matthew Denton <mpde...@chromium.org>
    Gerrit-CC: Rafael Cintron <rafael....@microsoft.com>
    Gerrit-Attention: Alex Gough <aj...@chromium.org>
    Gerrit-Attention: ningxin hu <ningx...@intel.com>
    Gerrit-Attention: Honglin Yu <hong...@chromium.org>
    Gerrit-Comment-Date: Wed, 29 Jun 2022 07:35:55 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: ningxin hu <ningx...@intel.com>

    Lisha Guo (Gerrit)

    unread,
    Jun 29, 2022, 3:40:16 AM6/29/22
    to ningxin hu, blink-revie...@chromium.org, blink-...@chromium.org, jmedle...@chromium.org, Honglin Yu, Chromium LUCI CQ, Robert Ogden, Junwei, Matthew Denton, Alex Gough, Junwei Fu, Jonathan Bingham, Rafael Cintron, chromium...@chromium.org, Kentaro Hara

    Attention is currently required from: Alex Gough, Honglin Yu, ningxin hu.

    View Change

    1 comment:

    • File third_party/blink/renderer/modules/ml/webnn/ml_graph_builder.cc:

      • Patch Set #16, Line 481: output_shape[minus1_dim_idx] = input_size / capacity;

        I suggest the exception should be thrown if `input / capacity != 0`

    To view, visit change 3684745. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I40141329eb339a09b51ab997769877135f4f056a
    Gerrit-Change-Number: 3684745
    Gerrit-PatchSet: 16
    Gerrit-Owner: ningxin hu <ningx...@intel.com>
    Gerrit-Reviewer: Alex Gough <aj...@chromium.org>
    Gerrit-Reviewer: Honglin Yu <hong...@chromium.org>
    Gerrit-Reviewer: Junwei Fu <junw...@intel.com>
    Gerrit-Reviewer: Robert Ogden <rober...@chromium.org>
    Gerrit-Reviewer: ningxin hu <ningx...@intel.com>
    Gerrit-CC: Jonathan Bingham <bing...@google.com>
    Gerrit-CC: Junwei <fujunw...@gmail.com>
    Gerrit-CC: Kentaro Hara <har...@chromium.org>
    Gerrit-CC: Lisha Guo <lish...@intel.corp-partner.google.com>
    Gerrit-CC: Matthew Denton <mpde...@chromium.org>
    Gerrit-CC: Rafael Cintron <rafael....@microsoft.com>
    Gerrit-Attention: Alex Gough <aj...@chromium.org>
    Gerrit-Attention: ningxin hu <ningx...@intel.com>
    Gerrit-Attention: Honglin Yu <hong...@chromium.org>
    Gerrit-Comment-Date: Wed, 29 Jun 2022 07:40:07 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Gerrit-MessageType: comment

    Alex Gough (Gerrit)

    unread,
    Jun 29, 2022, 5:57:23 PM6/29/22
    to ningxin hu, blink-revie...@chromium.org, blink-...@chromium.org, jmedle...@chromium.org, Honglin Yu, Lisha Guo, Chromium LUCI CQ, Robert Ogden, Junwei, Matthew Denton, Alex Gough, Junwei Fu, Jonathan Bingham, Rafael Cintron, chromium...@chromium.org, Kentaro Hara

    Attention is currently required from: Honglin Yu, ningxin hu.

    View Change

    2 comments:

    • Patchset:

      • Patch Set #16:

        thanks it's good to see use of checked calculations.

        another useful effort (in a different CL) would be to think about how this will be fuzzed - and perhaps add a fuzzer & corpus that calls the graph building and execution apis

    • File content/app/content_main_runner_impl.cc:

      • Patch Set #16, Line 421: if (xnn_initialize(NULL) != xnn_status_success) {

        It would obviously be good to avoid any pre-sandbox work if possible.

        Does this need to happen here on Windows? Can it happen once the sandbox is turned on there? Can we do this work later on any other platforms or avoid doing it on all platforms?

        Could cpuinfo or xnnpack be modified to set themselves up in a way that is friendly to sandboxes?

        Can the xnn allocator be provided so that partition alloc is used, rather than say heapalloc?

        Can xnn fail through unsupported cpus - if so what happens? (our current requirements are here: https://support.google.com/chrome/a/answer/7100626?hl=en)

    To view, visit change 3684745. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I40141329eb339a09b51ab997769877135f4f056a
    Gerrit-Change-Number: 3684745
    Gerrit-PatchSet: 16
    Gerrit-Owner: ningxin hu <ningx...@intel.com>
    Gerrit-Reviewer: Alex Gough <aj...@chromium.org>
    Gerrit-Reviewer: Honglin Yu <hong...@chromium.org>
    Gerrit-Reviewer: Junwei Fu <junw...@intel.com>
    Gerrit-Reviewer: Robert Ogden <rober...@chromium.org>
    Gerrit-Reviewer: ningxin hu <ningx...@intel.com>
    Gerrit-CC: Jonathan Bingham <bing...@google.com>
    Gerrit-CC: Junwei <fujunw...@gmail.com>
    Gerrit-CC: Kentaro Hara <har...@chromium.org>
    Gerrit-CC: Lisha Guo <lish...@intel.corp-partner.google.com>
    Gerrit-CC: Matthew Denton <mpde...@chromium.org>
    Gerrit-CC: Rafael Cintron <rafael....@microsoft.com>
    Gerrit-Attention: ningxin hu <ningx...@intel.com>
    Gerrit-Attention: Honglin Yu <hong...@chromium.org>
    Gerrit-Comment-Date: Wed, 29 Jun 2022 21:57:16 +0000

    Honglin Yu (Gerrit)

    unread,
    Jun 29, 2022, 9:37:32 PM6/29/22
    to ningxin hu, blink-revie...@chromium.org, blink-...@chromium.org, jmedle...@chromium.org, Lisha Guo, Chromium LUCI CQ, Robert Ogden, Junwei, Matthew Denton, Alex Gough, Junwei Fu, Jonathan Bingham, Rafael Cintron, chromium...@chromium.org, Kentaro Hara

    Attention is currently required from: ningxin hu.

    View Change

    1 comment:

    • Patchset:

      • Patch Set #16:

        Thanks Honglin. […]

        Thanks for the explanation, Ningxin! It makes sense to me. @skyostil: would you please help do an expert review on this? 😊 Thanks!

    To view, visit change 3684745. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I40141329eb339a09b51ab997769877135f4f056a
    Gerrit-Change-Number: 3684745
    Gerrit-PatchSet: 16
    Gerrit-Owner: ningxin hu <ningx...@intel.com>
    Gerrit-Reviewer: Alex Gough <aj...@chromium.org>
    Gerrit-Reviewer: Honglin Yu <hong...@chromium.org>
    Gerrit-Reviewer: Junwei Fu <junw...@intel.com>
    Gerrit-Reviewer: Robert Ogden <rober...@chromium.org>
    Gerrit-Reviewer: ningxin hu <ningx...@intel.com>
    Gerrit-CC: Jonathan Bingham <bing...@google.com>
    Gerrit-CC: Junwei <fujunw...@gmail.com>
    Gerrit-CC: Kentaro Hara <har...@chromium.org>
    Gerrit-CC: Lisha Guo <lish...@intel.corp-partner.google.com>
    Gerrit-CC: Matthew Denton <mpde...@chromium.org>
    Gerrit-CC: Rafael Cintron <rafael....@microsoft.com>
    Gerrit-Attention: ningxin hu <ningx...@intel.com>
    Gerrit-Comment-Date: Thu, 30 Jun 2022 01:37:22 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: ningxin hu <ningx...@intel.com>

    ningxin hu (Gerrit)

    unread,
    Jun 30, 2022, 2:48:33 AM6/30/22
    to blink-revie...@chromium.org, blink-...@chromium.org, jmedle...@chromium.org, Sami Kyöstilä, Honglin Yu, Lisha Guo, Chromium LUCI CQ, Robert Ogden, Junwei, Matthew Denton, Alex Gough, Junwei Fu, Jonathan Bingham, Rafael Cintron, chromium...@chromium.org, Kentaro Hara

    Attention is currently required from: Honglin Yu, Lisha Guo, Sami Kyöstilä.

    View Change

    3 comments:

    • Patchset:

    • Patchset:

      • Patch Set #17:

        PS17 fixes two issues:
        1. need to validate the calculation of unknown dimension size for reshape
        2. avoid add duplicated constants when sort the operators

        Lisha and Junwei, please take a look. Thanks.

    • File third_party/blink/renderer/modules/ml/webnn/ml_graph_builder.cc:

      • Patch Set #16, Line 481: output_shape[minus1_dim_idx] = input_size / capacity;

        I suggest the exception should be thrown if `input / capacity != 0`

      • Thanks Lisha. Fixed it in PS17. Please take a look.

    To view, visit change 3684745. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I40141329eb339a09b51ab997769877135f4f056a
    Gerrit-Change-Number: 3684745
    Gerrit-PatchSet: 17
    Gerrit-Owner: ningxin hu <ningx...@intel.com>
    Gerrit-Reviewer: Alex Gough <aj...@chromium.org>
    Gerrit-Reviewer: Honglin Yu <hong...@chromium.org>
    Gerrit-Reviewer: Junwei Fu <junw...@intel.com>
    Gerrit-Reviewer: Robert Ogden <rober...@chromium.org>
    Gerrit-Reviewer: Sami Kyöstilä <skyo...@chromium.org>
    Gerrit-Reviewer: ningxin hu <ningx...@intel.com>
    Gerrit-CC: Jonathan Bingham <bing...@google.com>
    Gerrit-CC: Junwei <fujunw...@gmail.com>
    Gerrit-CC: Kentaro Hara <har...@chromium.org>
    Gerrit-CC: Lisha Guo <lish...@intel.corp-partner.google.com>
    Gerrit-CC: Matthew Denton <mpde...@chromium.org>
    Gerrit-CC: Rafael Cintron <rafael....@microsoft.com>
    Gerrit-Attention: Lisha Guo <lish...@intel.corp-partner.google.com>
    Gerrit-Attention: Sami Kyöstilä <skyo...@chromium.org>
    Gerrit-Attention: Honglin Yu <hong...@chromium.org>
    Gerrit-Comment-Date: Thu, 30 Jun 2022 06:48:25 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: ningxin hu <ningx...@intel.com>

    ningxin hu (Gerrit)

    unread,
    Jun 30, 2022, 3:20:09 AM6/30/22
    to blink-revie...@chromium.org, blink-...@chromium.org, jmedle...@chromium.org, Sami Kyöstilä, Honglin Yu, Lisha Guo, Chromium LUCI CQ, Robert Ogden, Junwei, Matthew Denton, Alex Gough, Junwei Fu, Jonathan Bingham, Rafael Cintron, chromium...@chromium.org, Kentaro Hara

    Attention is currently required from: Alex Gough, Honglin Yu, Lisha Guo, Sami Kyöstilä.

    View Change

    2 comments:

    • Patchset:

      • Patch Set #16:

        thanks it's good to see use of checked calculations. […]

        That's a good idea. I'll follow up in a separate CL.

    • File content/app/content_main_runner_impl.cc:

      • Does this need to happen here on Windows? Can it happen once the sandbox is turned on there? Can we do this work later on any other platforms or avoid doing it on all platforms?

        No. On Windows, the xnnpack can be initialized after sandbox is turned on.


      • Could cpuinfo or xnnpack be modified to set themselves up in a way that is friendly to sandboxes?

      • This needs to be investigated.

        So are you suggesting this CL just supports Windows? and support other platforms in following CL? This sounds good to me. I can remove the pre-sandbox initialization code for Linux. Please let me know.


      • Can the xnn allocator be provided so that partition alloc is used, rather than say heapalloc?

      • It looks like possible. I'll investigate and get you back.

    To view, visit change 3684745. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I40141329eb339a09b51ab997769877135f4f056a
    Gerrit-Change-Number: 3684745
    Gerrit-PatchSet: 17
    Gerrit-Owner: ningxin hu <ningx...@intel.com>
    Gerrit-Reviewer: Alex Gough <aj...@chromium.org>
    Gerrit-Reviewer: Honglin Yu <hong...@chromium.org>
    Gerrit-Reviewer: Junwei Fu <junw...@intel.com>
    Gerrit-Reviewer: Robert Ogden <rober...@chromium.org>
    Gerrit-Reviewer: Sami Kyöstilä <skyo...@chromium.org>
    Gerrit-Reviewer: ningxin hu <ningx...@intel.com>
    Gerrit-CC: Jonathan Bingham <bing...@google.com>
    Gerrit-CC: Junwei <fujunw...@gmail.com>
    Gerrit-CC: Kentaro Hara <har...@chromium.org>
    Gerrit-CC: Lisha Guo <lish...@intel.corp-partner.google.com>
    Gerrit-CC: Matthew Denton <mpde...@chromium.org>
    Gerrit-CC: Rafael Cintron <rafael....@microsoft.com>
    Gerrit-Attention: Alex Gough <aj...@chromium.org>
    Gerrit-Attention: Lisha Guo <lish...@intel.corp-partner.google.com>
    Gerrit-Attention: Sami Kyöstilä <skyo...@chromium.org>
    Gerrit-Attention: Honglin Yu <hong...@chromium.org>
    Gerrit-Comment-Date: Thu, 30 Jun 2022 07:19:59 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Alex Gough <aj...@chromium.org>
    Gerrit-MessageType: comment

    Junwei (Gerrit)

    unread,
    Jun 30, 2022, 4:36:39 AM6/30/22
    to ningxin hu, blink-revie...@chromium.org, blink-...@chromium.org, jmedle...@chromium.org, Sami Kyöstilä, Honglin Yu, Lisha Guo, Chromium LUCI CQ, Robert Ogden, Matthew Denton, Alex Gough, Junwei Fu, Jonathan Bingham, Rafael Cintron, chromium...@chromium.org, Kentaro Hara

    Attention is currently required from: Alex Gough, Honglin Yu, Lisha Guo, Sami Kyöstilä, ningxin hu.

    View Change

    1 comment:

    To view, visit change 3684745. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I40141329eb339a09b51ab997769877135f4f056a
    Gerrit-Change-Number: 3684745
    Gerrit-PatchSet: 17
    Gerrit-Owner: ningxin hu <ningx...@intel.com>
    Gerrit-Reviewer: Alex Gough <aj...@chromium.org>
    Gerrit-Reviewer: Honglin Yu <hong...@chromium.org>
    Gerrit-Reviewer: Junwei Fu <junw...@intel.com>
    Gerrit-Reviewer: Robert Ogden <rober...@chromium.org>
    Gerrit-Reviewer: Sami Kyöstilä <skyo...@chromium.org>
    Gerrit-Reviewer: ningxin hu <ningx...@intel.com>
    Gerrit-CC: Jonathan Bingham <bing...@google.com>
    Gerrit-CC: Junwei <fujunw...@gmail.com>
    Gerrit-CC: Kentaro Hara <har...@chromium.org>
    Gerrit-CC: Lisha Guo <lish...@intel.corp-partner.google.com>
    Gerrit-CC: Matthew Denton <mpde...@chromium.org>
    Gerrit-CC: Rafael Cintron <rafael....@microsoft.com>
    Gerrit-Attention: Alex Gough <aj...@chromium.org>
    Gerrit-Attention: ningxin hu <ningx...@intel.com>
    Gerrit-Attention: Lisha Guo <lish...@intel.corp-partner.google.com>
    Gerrit-Attention: Sami Kyöstilä <skyo...@chromium.org>
    Gerrit-Attention: Honglin Yu <hong...@chromium.org>
    Gerrit-Comment-Date: Thu, 30 Jun 2022 08:36:31 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No

    Alex Gough (Gerrit)

    unread,
    Jun 30, 2022, 12:32:11 PM6/30/22
    to ningxin hu, blink-revie...@chromium.org, blink-...@chromium.org, jmedle...@chromium.org, Sami Kyöstilä, Honglin Yu, Lisha Guo, Chromium LUCI CQ, Robert Ogden, Junwei, Matthew Denton, Alex Gough, Junwei Fu, Jonathan Bingham, Rafael Cintron, chromium...@chromium.org, Kentaro Hara

    Attention is currently required from: Honglin Yu, Sami Kyöstilä, ningxin hu.

    View Change

    1 comment:

    • File content/app/content_main_runner_impl.cc:

      • > Does this need to happen here on Windows? Can it happen once the sandbox is turned on there? Can w […]

        thanks - keep in the linux support but do move the windows initialization later if possible.

    To view, visit change 3684745. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I40141329eb339a09b51ab997769877135f4f056a
    Gerrit-Change-Number: 3684745
    Gerrit-PatchSet: 18
    Gerrit-Owner: ningxin hu <ningx...@intel.com>
    Gerrit-Reviewer: Alex Gough <aj...@chromium.org>
    Gerrit-Reviewer: Honglin Yu <hong...@chromium.org>
    Gerrit-Reviewer: Junwei Fu <junw...@intel.com>
    Gerrit-Reviewer: Robert Ogden <rober...@chromium.org>
    Gerrit-Reviewer: Sami Kyöstilä <skyo...@chromium.org>
    Gerrit-Reviewer: ningxin hu <ningx...@intel.com>
    Gerrit-CC: Jonathan Bingham <bing...@google.com>
    Gerrit-CC: Junwei <fujunw...@gmail.com>
    Gerrit-CC: Kentaro Hara <har...@chromium.org>
    Gerrit-CC: Lisha Guo <lish...@intel.corp-partner.google.com>
    Gerrit-CC: Matthew Denton <mpde...@chromium.org>
    Gerrit-CC: Rafael Cintron <rafael....@microsoft.com>
    Gerrit-Attention: ningxin hu <ningx...@intel.com>
    Gerrit-Attention: Sami Kyöstilä <skyo...@chromium.org>
    Gerrit-Attention: Honglin Yu <hong...@chromium.org>
    Gerrit-Comment-Date: Thu, 30 Jun 2022 16:32:01 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Alex Gough <aj...@chromium.org>

    Lisha Guo (Gerrit)

    unread,
    Jun 30, 2022, 9:45:47 PM6/30/22
    to ningxin hu, blink-revie...@chromium.org, blink-...@chromium.org, jmedle...@chromium.org, Sami Kyöstilä, Honglin Yu, Chromium LUCI CQ, Robert Ogden, Junwei, Matthew Denton, Alex Gough, Junwei Fu, Jonathan Bingham, Rafael Cintron, chromium...@chromium.org, Kentaro Hara

    Attention is currently required from: Honglin Yu, Sami Kyöstilä, ningxin hu.

    View Change

    2 comments:

    • Patchset:

    • File third_party/blink/renderer/modules/ml/webnn/ml_graph_builder.cc:

      • Thanks Lisha. Fixed it in PS17. Please take a look.

        Done

    To view, visit change 3684745. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I40141329eb339a09b51ab997769877135f4f056a
    Gerrit-Change-Number: 3684745
    Gerrit-PatchSet: 18
    Gerrit-Owner: ningxin hu <ningx...@intel.com>
    Gerrit-Reviewer: Alex Gough <aj...@chromium.org>
    Gerrit-Reviewer: Honglin Yu <hong...@chromium.org>
    Gerrit-Reviewer: Junwei Fu <junw...@intel.com>
    Gerrit-Reviewer: Robert Ogden <rober...@chromium.org>
    Gerrit-Reviewer: Sami Kyöstilä <skyo...@chromium.org>
    Gerrit-Reviewer: ningxin hu <ningx...@intel.com>
    Gerrit-CC: Jonathan Bingham <bing...@google.com>
    Gerrit-CC: Junwei <fujunw...@gmail.com>
    Gerrit-CC: Kentaro Hara <har...@chromium.org>
    Gerrit-CC: Lisha Guo <lish...@intel.corp-partner.google.com>
    Gerrit-CC: Matthew Denton <mpde...@chromium.org>
    Gerrit-CC: Rafael Cintron <rafael....@microsoft.com>
    Gerrit-Attention: ningxin hu <ningx...@intel.com>
    Gerrit-Attention: Sami Kyöstilä <skyo...@chromium.org>
    Gerrit-Attention: Honglin Yu <hong...@chromium.org>
    Gerrit-Comment-Date: Fri, 01 Jul 2022 01:45:34 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No

    ningxin hu (Gerrit)

    unread,
    Jun 30, 2022, 10:12:34 PM6/30/22
    to blink-revie...@chromium.org, blink-...@chromium.org, jmedle...@chromium.org, Sami Kyöstilä, Honglin Yu, Lisha Guo, Chromium LUCI CQ, Robert Ogden, Junwei, Matthew Denton, Alex Gough, Junwei Fu, Jonathan Bingham, Rafael Cintron, chromium...@chromium.org, Kentaro Hara

    Attention is currently required from: Alex Gough, Honglin Yu, Sami Kyöstilä.

    View Change

    1 comment:

    • File content/app/content_main_runner_impl.cc:

      • thanks - keep in the linux support but do move the windows initialization later if possible.

        I suppose the xnnpack initialization here is only for Linux, because this code is guarded by build flag check "BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)" at line 367. Probably I could make it clear in the comment. WDYT?

        The initialization on Windows happens later in "SharedXnnpackContext::Initialize" when MLGraphXnnpack is created.

        Does this implementation align with your suggestion?

    To view, visit change 3684745. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I40141329eb339a09b51ab997769877135f4f056a
    Gerrit-Change-Number: 3684745
    Gerrit-PatchSet: 18
    Gerrit-Owner: ningxin hu <ningx...@intel.com>
    Gerrit-Reviewer: Alex Gough <aj...@chromium.org>
    Gerrit-Reviewer: Honglin Yu <hong...@chromium.org>
    Gerrit-Reviewer: Junwei Fu <junw...@intel.com>
    Gerrit-Reviewer: Robert Ogden <rober...@chromium.org>
    Gerrit-Reviewer: Sami Kyöstilä <skyo...@chromium.org>
    Gerrit-Reviewer: ningxin hu <ningx...@intel.com>
    Gerrit-CC: Jonathan Bingham <bing...@google.com>
    Gerrit-CC: Junwei <fujunw...@gmail.com>
    Gerrit-CC: Kentaro Hara <har...@chromium.org>
    Gerrit-CC: Lisha Guo <lish...@intel.corp-partner.google.com>
    Gerrit-CC: Matthew Denton <mpde...@chromium.org>
    Gerrit-CC: Rafael Cintron <rafael....@microsoft.com>
    Gerrit-Attention: Alex Gough <aj...@chromium.org>
    Gerrit-Attention: Sami Kyöstilä <skyo...@chromium.org>
    Gerrit-Attention: Honglin Yu <hong...@chromium.org>
    Gerrit-Comment-Date: Fri, 01 Jul 2022 02:12:25 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No

    Sami Kyöstilä (Gerrit)

    unread,
    Jul 1, 2022, 4:34:39 AM7/1/22
    to ningxin hu, blink-revie...@chromium.org, blink-...@chromium.org, jmedle...@chromium.org, Honglin Yu, Lisha Guo, Chromium LUCI CQ, Robert Ogden, Junwei, Matthew Denton, Alex Gough, Junwei Fu, Jonathan Bingham, Rafael Cintron, chromium...@chromium.org, Kentaro Hara

    Attention is currently required from: Alex Gough, Honglin Yu, ningxin hu.

    View Change

    5 comments:

    • Patchset:

      • Patch Set #18:

        Thanks for the patch! I've added a few comments about threading.

    • File third_party/blink/renderer/modules/ml/webnn/ml_graph_xnnpack.cc:

      • Patch Set #18, Line 43: instance_

        This doesn't look thread safe. We might want to use `base::NoDestructor<SharedXnnPackContext>` or alternatively ` DEFINE_THREAD_SAFE_STATIC_LOCAL` -- unless it's important to tear this down after the computation.

      • Patch Set #18, Line 66: pthreadpool_create

        Could we reuse base::ThreadPool here instead of spinning up a competing thread pool?

        A lighter weight option would be base::PostJob if we're expecting extremely many small tasks to be posted.

      • Patch Set #18, Line 1100: if

        I suggest annotating at least this method with `TRACE_EVENT("blink", "MLGraphXnnpack::InvokeRuntime")` to make it more obvious in traces since it's likely to use a lot of CPU time.

      • Patch Set #18, Line 1169: xnn_invoke_runtime

        Just curious: does the thread calling `xnn_invoke_runtime` also participate in the inference or is it just parked while the threadpool does the work? The former could improve performance a bit since the calling thread is already running.

    To view, visit change 3684745. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I40141329eb339a09b51ab997769877135f4f056a
    Gerrit-Change-Number: 3684745
    Gerrit-PatchSet: 18
    Gerrit-Owner: ningxin hu <ningx...@intel.com>
    Gerrit-Reviewer: Alex Gough <aj...@chromium.org>
    Gerrit-Reviewer: Honglin Yu <hong...@chromium.org>
    Gerrit-Reviewer: Junwei Fu <junw...@intel.com>
    Gerrit-Reviewer: Robert Ogden <rober...@chromium.org>
    Gerrit-Reviewer: Sami Kyöstilä <skyo...@chromium.org>
    Gerrit-Reviewer: ningxin hu <ningx...@intel.com>
    Gerrit-CC: Jonathan Bingham <bing...@google.com>
    Gerrit-CC: Junwei <fujunw...@gmail.com>
    Gerrit-CC: Kentaro Hara <har...@chromium.org>
    Gerrit-CC: Lisha Guo <lish...@intel.corp-partner.google.com>
    Gerrit-CC: Matthew Denton <mpde...@chromium.org>
    Gerrit-CC: Rafael Cintron <rafael....@microsoft.com>
    Gerrit-Attention: Alex Gough <aj...@chromium.org>
    Gerrit-Attention: ningxin hu <ningx...@intel.com>
    Gerrit-Attention: Honglin Yu <hong...@chromium.org>
    Gerrit-Comment-Date: Fri, 01 Jul 2022 08:34:28 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Gerrit-MessageType: comment

    Alex Gough (Gerrit)

    unread,
    Jul 1, 2022, 1:06:20 PM7/1/22
    to ningxin hu, blink-revie...@chromium.org, blink-...@chromium.org, jmedle...@chromium.org, Sami Kyöstilä, Honglin Yu, Lisha Guo, Chromium LUCI CQ, Robert Ogden, Junwei, Matthew Denton, Alex Gough, Junwei Fu, Jonathan Bingham, Rafael Cintron, chromium...@chromium.org, Kentaro Hara

    Attention is currently required from: Honglin Yu, ningxin hu.

    View Change

    1 comment:

    • File content/app/content_main_runner_impl.cc:

      • I suppose the xnnpack initialization here is only for Linux, because this code is guarded by build f […]

        ah you're right - so many buildflags!

    To view, visit change 3684745. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I40141329eb339a09b51ab997769877135f4f056a
    Gerrit-Change-Number: 3684745
    Gerrit-PatchSet: 18
    Gerrit-Owner: ningxin hu <ningx...@intel.com>
    Gerrit-Reviewer: Alex Gough <aj...@chromium.org>
    Gerrit-Reviewer: Honglin Yu <hong...@chromium.org>
    Gerrit-Reviewer: Junwei Fu <junw...@intel.com>
    Gerrit-Reviewer: Robert Ogden <rober...@chromium.org>
    Gerrit-Reviewer: Sami Kyöstilä <skyo...@chromium.org>
    Gerrit-Reviewer: ningxin hu <ningx...@intel.com>
    Gerrit-CC: Jonathan Bingham <bing...@google.com>
    Gerrit-CC: Junwei <fujunw...@gmail.com>
    Gerrit-CC: Kentaro Hara <har...@chromium.org>
    Gerrit-CC: Lisha Guo <lish...@intel.corp-partner.google.com>
    Gerrit-CC: Matthew Denton <mpde...@chromium.org>
    Gerrit-CC: Rafael Cintron <rafael....@microsoft.com>
    Gerrit-Attention: ningxin hu <ningx...@intel.com>
    Gerrit-Attention: Honglin Yu <hong...@chromium.org>
    Gerrit-Comment-Date: Fri, 01 Jul 2022 17:06:06 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No

    Rafael Cintron (Gerrit)

    unread,
    Jul 1, 2022, 8:40:18 PM7/1/22
    to ningxin hu, blink-revie...@chromium.org, blink-...@chromium.org, jmedle...@chromium.org, Sami Kyöstilä, Honglin Yu, Lisha Guo, Chromium LUCI CQ, Robert Ogden, Junwei, Matthew Denton, Alex Gough, Junwei Fu, Jonathan Bingham, chromium...@chromium.org, Kentaro Hara

    Attention is currently required from: Honglin Yu, Sami Kyöstilä, ningxin hu.

    View Change

    4 comments:

    • Patchset:

      • Patch Set #18:

        I have not finished reviewing this large change. Will finish next week.

    • File third_party/blink/renderer/modules/ml/webnn/ml_graph_builder.cc:

      • Patch Set #18, Line 31:

        Vector<int32_t> dims_input0,
        Vector<int32_t> dims_input1,

        Since dims_input0 and dims_input1 are passed by value, a copy is made of the vector on the stack. Since BroadcastShape only reads from the vectors and doesn't take ownership of them, you should pass these by const reference instead.

      • Patch Set #18, Line 245: divides

        Nit: divides --> divide

    • File third_party/blink/renderer/modules/ml/webnn/ml_graph_xnnpack.cc:

      • This doesn't look thread safe. […]

        +1 to not being thread safe.

        The comments at the top of base/memory/singleton.h provide a good set of options for how to make a singleton that is only initialized once in a threadsafe manner.

        However, even after initialization, the singleton needs to, itself, be threadsafe. Is that possible?

    To view, visit change 3684745. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I40141329eb339a09b51ab997769877135f4f056a
    Gerrit-Change-Number: 3684745
    Gerrit-PatchSet: 18
    Gerrit-Owner: ningxin hu <ningx...@intel.com>
    Gerrit-Reviewer: Alex Gough <aj...@chromium.org>
    Gerrit-Reviewer: Honglin Yu <hong...@chromium.org>
    Gerrit-Reviewer: Junwei Fu <junw...@intel.com>
    Gerrit-Reviewer: Robert Ogden <rober...@chromium.org>
    Gerrit-Reviewer: Sami Kyöstilä <skyo...@chromium.org>
    Gerrit-Reviewer: ningxin hu <ningx...@intel.com>
    Gerrit-CC: Jonathan Bingham <bing...@google.com>
    Gerrit-CC: Junwei <fujunw...@gmail.com>
    Gerrit-CC: Kentaro Hara <har...@chromium.org>
    Gerrit-CC: Lisha Guo <lish...@intel.corp-partner.google.com>
    Gerrit-CC: Matthew Denton <mpde...@chromium.org>
    Gerrit-CC: Rafael Cintron <rafael....@microsoft.com>
    Gerrit-Attention: ningxin hu <ningx...@intel.com>
    Gerrit-Attention: Sami Kyöstilä <skyo...@chromium.org>
    Gerrit-Attention: Honglin Yu <hong...@chromium.org>
    Gerrit-Comment-Date: Sat, 02 Jul 2022 00:40:09 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Sami Kyöstilä <skyo...@chromium.org>
    Gerrit-MessageType: comment

    ningxin hu (Gerrit)

    unread,
    Jul 2, 2022, 4:52:21 AM7/2/22
    to blink-revie...@chromium.org, blink-...@chromium.org, jmedle...@chromium.org, Sami Kyöstilä, Honglin Yu, Lisha Guo, Chromium LUCI CQ, Robert Ogden, Junwei, Matthew Denton, Alex Gough, Junwei Fu, Jonathan Bingham, Rafael Cintron, chromium...@chromium.org, Kentaro Hara

    Attention is currently required from: Honglin Yu, Rafael Cintron, Sami Kyöstilä.

    View Change

    7 comments:

    • Patchset:

    • File third_party/blink/renderer/modules/ml/webnn/ml_graph_builder.cc:

      • Since dims_input0 and dims_input1 are passed by value, a copy is made of the vector on the stack. […]

        You are right. I'll use const reference for dims_input0 and dims_input1.

      • Ack

    • File third_party/blink/renderer/modules/ml/webnn/ml_graph_xnnpack.cc:

      • Yes, this is not thread safe. I'll fix that.

      • unless it's important to tear this down after the computation.

      • As the SharedXnnpackContext owns the pthreadpool, I suppose it would be good to tear it down if there are no MLGraphXnnpack objects use it. I understand singleton object would be created and live for the whole process lifetime. So I'd make it reference counted.

        WDYT?

      • Patch Set #18, Line 66: pthreadpool_create

        Could we reuse base::ThreadPool here instead of spinning up a competing thread pool?

      • I suggest annotating at least this method with `TRACE_EVENT("blink", "MLGraphXnnpack::InvokeRuntime" […]

        Great suggestion. I'll add it here and probably also "MLGraphXnnpack::CreateRuntime" which will optimize the graph.

    To view, visit change 3684745. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I40141329eb339a09b51ab997769877135f4f056a
    Gerrit-Change-Number: 3684745
    Gerrit-PatchSet: 18
    Gerrit-Owner: ningxin hu <ningx...@intel.com>
    Gerrit-Reviewer: Alex Gough <aj...@chromium.org>
    Gerrit-Reviewer: Honglin Yu <hong...@chromium.org>
    Gerrit-Reviewer: Junwei Fu <junw...@intel.com>
    Gerrit-Reviewer: Robert Ogden <rober...@chromium.org>
    Gerrit-Reviewer: Sami Kyöstilä <skyo...@chromium.org>
    Gerrit-Reviewer: ningxin hu <ningx...@intel.com>
    Gerrit-CC: Jonathan Bingham <bing...@google.com>
    Gerrit-CC: Junwei <fujunw...@gmail.com>
    Gerrit-CC: Kentaro Hara <har...@chromium.org>
    Gerrit-CC: Lisha Guo <lish...@intel.corp-partner.google.com>
    Gerrit-CC: Matthew Denton <mpde...@chromium.org>
    Gerrit-CC: Rafael Cintron <rafael....@microsoft.com>
    Gerrit-Attention: Rafael Cintron <rafael....@microsoft.com>
    Gerrit-Attention: Sami Kyöstilä <skyo...@chromium.org>
    Gerrit-Attention: Honglin Yu <hong...@chromium.org>
    Gerrit-Comment-Date: Sat, 02 Jul 2022 08:52:13 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Rafael Cintron <rafael....@microsoft.com>

    Sami Kyöstilä (Gerrit)

    unread,
    Jul 4, 2022, 4:09:54 AM7/4/22
    to ningxin hu, blink-revie...@chromium.org, blink-...@chromium.org, jmedle...@chromium.org, Honglin Yu, Lisha Guo, Chromium LUCI CQ, Robert Ogden, Junwei, Matthew Denton, Alex Gough, Junwei Fu, Jonathan Bingham, Rafael Cintron, chromium...@chromium.org, Kentaro Hara

    Attention is currently required from: Honglin Yu, Rafael Cintron, ningxin hu.

    View Change

    3 comments:

    • File third_party/blink/renderer/modules/ml/webnn/ml_graph_xnnpack.cc:

      • Yes, this is not thread safe. I'll fix that. […]

        Agreed, tearing down the thread pool when not needed is probably a good idea if we can do it safely.

      • Patch Set #18, Line 66: pthreadpool_create

        > Could we reuse base::ThreadPool here instead of spinning up a competing thread pool? […]

      • I see, I thought they might be quite tightly coupled. The closest analog in Chrome would be `base::PostJob`, and while from a quick skim `pthreadpool_parallelize` could be made to use it instead, it might not be worth the trouble at this point. How about we add a TODO here as reminder to consider `base::PostJob` in the future.

        Btw, let's make this `std::max(1, base::SysInfo::NumberOfProcessors() / 2)` so that the pool size is predictable even if there's just one hardware thread available (e.g., when running in a virtualized container).

      • The calling thread would do computation as worker 0 [1]. […]

        Interesting, thanks for checking!

    To view, visit change 3684745. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I40141329eb339a09b51ab997769877135f4f056a
    Gerrit-Change-Number: 3684745
    Gerrit-PatchSet: 18
    Gerrit-Owner: ningxin hu <ningx...@intel.com>
    Gerrit-Reviewer: Alex Gough <aj...@chromium.org>
    Gerrit-Reviewer: Honglin Yu <hong...@chromium.org>
    Gerrit-Reviewer: Junwei Fu <junw...@intel.com>
    Gerrit-Reviewer: Robert Ogden <rober...@chromium.org>
    Gerrit-Reviewer: Sami Kyöstilä <skyo...@chromium.org>
    Gerrit-Reviewer: ningxin hu <ningx...@intel.com>
    Gerrit-CC: Jonathan Bingham <bing...@google.com>
    Gerrit-CC: Junwei <fujunw...@gmail.com>
    Gerrit-CC: Kentaro Hara <har...@chromium.org>
    Gerrit-CC: Lisha Guo <lish...@intel.corp-partner.google.com>
    Gerrit-CC: Matthew Denton <mpde...@chromium.org>
    Gerrit-CC: Rafael Cintron <rafael....@microsoft.com>
    Gerrit-Attention: ningxin hu <ningx...@intel.com>
    Gerrit-Attention: Rafael Cintron <rafael....@microsoft.com>
    Gerrit-Attention: Honglin Yu <hong...@chromium.org>
    Gerrit-Comment-Date: Mon, 04 Jul 2022 08:09:44 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: ningxin hu <ningx...@intel.com>

    ningxin hu (Gerrit)

    unread,
    Jul 4, 2022, 11:58:03 AM7/4/22
    to blink-revie...@chromium.org, blink-...@chromium.org, jmedle...@chromium.org, Sami Kyöstilä, Honglin Yu, Lisha Guo, Chromium LUCI CQ, Robert Ogden, Junwei, Matthew Denton, Alex Gough, Junwei Fu, Jonathan Bingham, Rafael Cintron, chromium...@chromium.org, Kentaro Hara

    Attention is currently required from: Alex Gough, Honglin Yu, Rafael Cintron, Sami Kyöstilä.

    View Change

    6 comments:

    • Patchset:

      • Patch Set #20:

        Upload PS 19 and 20 to address the following comments:
        1. Use partition alloc to implement xnn allocator and constant data. (Alex)
        2. Make the creation of SharedXnnpackContext thread safe. (Sami and Rafael)
        3. Add TODO of using base::PostJob in the future (Sami)
        4. Make thread number of pthreadpool predictable (Sami)
        5. Use const reference for BroadcastShape (Rafael)
        6. A typo (Rafael)

        Alex, Sami and Rafael, please take another look. Thanks!

    • File content/app/content_main_runner_impl.cc:

      • You are right. I'll use const reference for dims_input0 and dims_input1.

        Fixed in PS20. Please take another look. Thanks.

      • Ack

        Fixed in PS20.

    • File third_party/blink/renderer/modules/ml/webnn/ml_graph_xnnpack.cc:

      • Agreed, tearing down the thread pool when not needed is probably a good idea if we can do it safely.

        In PS19, I tried to fir it by using DEFINE_THREAD_SAFE_STATIC_LOCAL to define a lock (SharedXnnpackContextLock) and use that lock to protect the instance_ creation. Please take a look.

      • How about we add a TODO here as reminder to consider base::PostJob in the future.

        sgtm. I added it in PS20.

      • let's make this std::max(1, base::SysInfo::NumberOfProcessors() / 2)

      • It makes sense. Thanks! Fixed in PS20.

        Please take another look.

    To view, visit change 3684745. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I40141329eb339a09b51ab997769877135f4f056a
    Gerrit-Change-Number: 3684745
    Gerrit-PatchSet: 20
    Gerrit-Owner: ningxin hu <ningx...@intel.com>
    Gerrit-Reviewer: Alex Gough <aj...@chromium.org>
    Gerrit-Reviewer: Honglin Yu <hong...@chromium.org>
    Gerrit-Reviewer: Junwei Fu <junw...@intel.com>
    Gerrit-Reviewer: Robert Ogden <rober...@chromium.org>
    Gerrit-Reviewer: Sami Kyöstilä <skyo...@chromium.org>
    Gerrit-Reviewer: ningxin hu <ningx...@intel.com>
    Gerrit-CC: Jonathan Bingham <bing...@google.com>
    Gerrit-CC: Junwei <fujunw...@gmail.com>
    Gerrit-CC: Kentaro Hara <har...@chromium.org>
    Gerrit-CC: Lisha Guo <lish...@intel.corp-partner.google.com>
    Gerrit-CC: Matthew Denton <mpde...@chromium.org>
    Gerrit-CC: Rafael Cintron <rafael....@microsoft.com>
    Gerrit-Attention: Alex Gough <aj...@chromium.org>
    Gerrit-Attention: Sami Kyöstilä <skyo...@chromium.org>
    Gerrit-Attention: Rafael Cintron <rafael....@microsoft.com>
    Gerrit-Attention: Honglin Yu <hong...@chromium.org>
    Gerrit-Comment-Date: Mon, 04 Jul 2022 15:57:55 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Alex Gough <aj...@chromium.org>

    Honglin Yu (Gerrit)

    unread,
    Jul 4, 2022, 10:13:25 PM7/4/22
    to ningxin hu, blink-revie...@chromium.org, blink-...@chromium.org, jmedle...@chromium.org, Sami Kyöstilä, Lisha Guo, Chromium LUCI CQ, Robert Ogden, Junwei, Matthew Denton, Alex Gough, Junwei Fu, Jonathan Bingham, Rafael Cintron, chromium...@chromium.org, Kentaro Hara

    Attention is currently required from: Alex Gough, Rafael Cintron, Sami Kyöstilä, ningxin hu.

    View Change

    1 comment:

    • File third_party/blink/renderer/modules/ml/webnn/ml_graph_xnnpack.cc:

      • In PS19, I tried to fir it by using DEFINE_THREAD_SAFE_STATIC_LOCAL to define a lock (SharedXnnpackC […]

        AFAIK, task posting is usually preferred over locks especially when it is not performance crucial. Maybe you could try to post the task to the kInternalDefault task runner (is it the right place?)? e.g.,
        ```
        task_runner = execution_context->GetTaskRunner(kInternalDefault);
        if (!task_runner->RunsTasksInCurrentSequence()) {
        task_runner->PostTask(FUNC, ...);
        }
        ```

    To view, visit change 3684745. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I40141329eb339a09b51ab997769877135f4f056a
    Gerrit-Change-Number: 3684745
    Gerrit-PatchSet: 20
    Gerrit-Owner: ningxin hu <ningx...@intel.com>
    Gerrit-Reviewer: Alex Gough <aj...@chromium.org>
    Gerrit-Reviewer: Honglin Yu <hong...@chromium.org>
    Gerrit-Reviewer: Junwei Fu <junw...@intel.com>
    Gerrit-Reviewer: Robert Ogden <rober...@chromium.org>
    Gerrit-Reviewer: Sami Kyöstilä <skyo...@chromium.org>
    Gerrit-Reviewer: ningxin hu <ningx...@intel.com>
    Gerrit-CC: Jonathan Bingham <bing...@google.com>
    Gerrit-CC: Junwei <fujunw...@gmail.com>
    Gerrit-CC: Kentaro Hara <har...@chromium.org>
    Gerrit-CC: Lisha Guo <lish...@intel.corp-partner.google.com>
    Gerrit-CC: Matthew Denton <mpde...@chromium.org>
    Gerrit-CC: Rafael Cintron <rafael....@microsoft.com>
    Gerrit-Attention: Alex Gough <aj...@chromium.org>
    Gerrit-Attention: ningxin hu <ningx...@intel.com>
    Gerrit-Attention: Sami Kyöstilä <skyo...@chromium.org>
    Gerrit-Attention: Rafael Cintron <rafael....@microsoft.com>
    Gerrit-Comment-Date: Tue, 05 Jul 2022 02:13:15 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: ningxin hu <ningx...@intel.com>
    Comment-In-Reply-To: Sami Kyöstilä <skyo...@chromium.org>
    Comment-In-Reply-To: Rafael Cintron <rafael....@microsoft.com>
    Gerrit-MessageType: comment

    Sami Kyöstilä (Gerrit)

    unread,
    Jul 5, 2022, 1:01:17 AM7/5/22
    to ningxin hu, blink-revie...@chromium.org, blink-...@chromium.org, jmedle...@chromium.org, Honglin Yu, Lisha Guo, Chromium LUCI CQ, Robert Ogden, Junwei, Matthew Denton, Alex Gough, Junwei Fu, Jonathan Bingham, Rafael Cintron, chromium...@chromium.org, Kentaro Hara

    Attention is currently required from: Alex Gough, Honglin Yu, Rafael Cintron, ningxin hu.

    View Change

    5 comments:

    • File third_party/blink/renderer/modules/ml/webnn/ml_graph_xnnpack.cc:

      • AFAIK, task posting is usually preferred over locks especially when it is not performance crucial. […]

        While posting tasks would be more straightforward, I guess the issue here is that SharedXnnpackContext can be concurrently accessed by multiple threads. With that constraint I don't think we can easily avoid at least some kind of locking around the shared instance.

    • File third_party/blink/renderer/modules/ml/webnn/ml_graph_xnnpack.cc:

      • Patch Set #20, Line 76: bool Initialize() {

        If we did this initialization as a part of GetInstance(), could we avoid this second layer of locking? It seems like after the context is initialized, the thread pool can be retrieved without locking as long as each user keeps the context alive with a shared_refptr.

        If we do this, then it's probably worth changing MLGraphXnnpack to only call GetInstance() when it's actually needed (e.g., in CreateRuntime).

      • Patch Set #20, Line 114:

          SharedXnnpackContext() : initialized_(false) { instance_ = this; }
        ~SharedXnnpackContext() {

        We also need to hold the shared lock while setting and resetting the instance here.

      • Patch Set #20, Line 122: instance_ = nullptr;

        For safety: DCHECK_EQ(this, instance_);

      • Patch Set #20, Line 133: pthreadpool_

        Please default-initialize this to nullptr.

    To view, visit change 3684745. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I40141329eb339a09b51ab997769877135f4f056a
    Gerrit-Change-Number: 3684745
    Gerrit-PatchSet: 20
    Gerrit-Owner: ningxin hu <ningx...@intel.com>
    Gerrit-Reviewer: Alex Gough <aj...@chromium.org>
    Gerrit-Reviewer: Honglin Yu <hong...@chromium.org>
    Gerrit-Reviewer: Junwei Fu <junw...@intel.com>
    Gerrit-Reviewer: Robert Ogden <rober...@chromium.org>
    Gerrit-Reviewer: Sami Kyöstilä <skyo...@chromium.org>
    Gerrit-Reviewer: ningxin hu <ningx...@intel.com>
    Gerrit-CC: Jonathan Bingham <bing...@google.com>
    Gerrit-CC: Junwei <fujunw...@gmail.com>
    Gerrit-CC: Kentaro Hara <har...@chromium.org>
    Gerrit-CC: Lisha Guo <lish...@intel.corp-partner.google.com>
    Gerrit-CC: Matthew Denton <mpde...@chromium.org>
    Gerrit-CC: Rafael Cintron <rafael....@microsoft.com>
    Gerrit-Attention: Alex Gough <aj...@chromium.org>
    Gerrit-Attention: ningxin hu <ningx...@intel.com>
    Gerrit-Attention: Rafael Cintron <rafael....@microsoft.com>
    Gerrit-Attention: Honglin Yu <hong...@chromium.org>
    Gerrit-Comment-Date: Tue, 05 Jul 2022 05:01:02 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: ningxin hu <ningx...@intel.com>
    Comment-In-Reply-To: Sami Kyöstilä <skyo...@chromium.org>
    Comment-In-Reply-To: Rafael Cintron <rafael....@microsoft.com>

    Honglin Yu (Gerrit)

    unread,
    Jul 5, 2022, 1:26:42 AM7/5/22
    to ningxin hu, blink-revie...@chromium.org, blink-...@chromium.org, jmedle...@chromium.org, Sami Kyöstilä, Lisha Guo, Chromium LUCI CQ, Robert Ogden, Junwei, Matthew Denton, Alex Gough, Junwei Fu, Jonathan Bingham, Rafael Cintron, chromium...@chromium.org, Kentaro Hara

    Attention is currently required from: Alex Gough, Rafael Cintron, Sami Kyöstilä, ningxin hu.

    View Change

    1 comment:

    • File third_party/blink/renderer/modules/ml/webnn/ml_graph_xnnpack.cc:

    To view, visit change 3684745. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I40141329eb339a09b51ab997769877135f4f056a
    Gerrit-Change-Number: 3684745
    Gerrit-PatchSet: 20
    Gerrit-Owner: ningxin hu <ningx...@intel.com>
    Gerrit-Reviewer: Alex Gough <aj...@chromium.org>
    Gerrit-Reviewer: Honglin Yu <hong...@chromium.org>
    Gerrit-Reviewer: Junwei Fu <junw...@intel.com>
    Gerrit-Reviewer: Robert Ogden <rober...@chromium.org>
    Gerrit-Reviewer: Sami Kyöstilä <skyo...@chromium.org>
    Gerrit-Reviewer: ningxin hu <ningx...@intel.com>
    Gerrit-CC: Jonathan Bingham <bing...@google.com>
    Gerrit-CC: Junwei <fujunw...@gmail.com>
    Gerrit-CC: Kentaro Hara <har...@chromium.org>
    Gerrit-CC: Lisha Guo <lish...@intel.corp-partner.google.com>
    Gerrit-CC: Matthew Denton <mpde...@chromium.org>
    Gerrit-CC: Rafael Cintron <rafael....@microsoft.com>
    Gerrit-Attention: Alex Gough <aj...@chromium.org>
    Gerrit-Attention: ningxin hu <ningx...@intel.com>
    Gerrit-Attention: Sami Kyöstilä <skyo...@chromium.org>
    Gerrit-Attention: Rafael Cintron <rafael....@microsoft.com>
    Gerrit-Comment-Date: Tue, 05 Jul 2022 05:26:31 +0000

    ningxin hu (Gerrit)

    unread,
    Jul 5, 2022, 9:08:42 AM7/5/22
    to blink-revie...@chromium.org, blink-...@chromium.org, jmedle...@chromium.org, Sami Kyöstilä, Honglin Yu, Lisha Guo, Chromium LUCI CQ, Robert Ogden, Junwei, Matthew Denton, Alex Gough, Junwei Fu, Jonathan Bingham, Rafael Cintron, chromium...@chromium.org, Kentaro Hara

    Attention is currently required from: Honglin Yu, Sami Kyöstilä.

    View Change

    6 comments:

    • Patchset:

      • Patch Set #21:

        Hi Sami and Honglin, I tried to address your comments about locking in PS21. Please kindly take a look. Thanks!

    • File third_party/blink/renderer/modules/ml/webnn/ml_graph_xnnpack.cc:

      • Yeah, locking is necessary. […]

        Thanks for the reference, Honglin. It is very helpful. Agreed with you and Sami about using lock to make it thread safe.

    • File third_party/blink/renderer/modules/ml/webnn/ml_graph_xnnpack.cc:

      • Great suggestion. I tried to implement it in PS21. PTAL.

      • as long as each user keeps the context alive with a shared_refptr.

      • The scoped_refptr is used by MLGraphXnnpack to keep the context alive. Please let me know whether it looks right.

      • Patch Set #20, Line 114:

          SharedXnnpackContext() : initialized_(false) { instance_ = this; }
        ~SharedXnnpackContext() {

        We also need to hold the shared lock while setting and resetting the instance here.

      • The constructor is only called by GetInstance() where the shared lock is held. So I only fixed the destructor by holding the shared lock while resetting the instance. Please take a look at PS21.

      • Fixed in PS21.

      • Fixed in PS21

    To view, visit change 3684745. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I40141329eb339a09b51ab997769877135f4f056a
    Gerrit-Change-Number: 3684745
    Gerrit-PatchSet: 21
    Gerrit-Owner: ningxin hu <ningx...@intel.com>
    Gerrit-Reviewer: Alex Gough <aj...@chromium.org>
    Gerrit-Reviewer: Honglin Yu <hong...@chromium.org>
    Gerrit-Reviewer: Junwei Fu <junw...@intel.com>
    Gerrit-Reviewer: Robert Ogden <rober...@chromium.org>
    Gerrit-Reviewer: Sami Kyöstilä <skyo...@chromium.org>
    Gerrit-Reviewer: ningxin hu <ningx...@intel.com>
    Gerrit-CC: Jonathan Bingham <bing...@google.com>
    Gerrit-CC: Junwei <fujunw...@gmail.com>
    Gerrit-CC: Kentaro Hara <har...@chromium.org>
    Gerrit-CC: Lisha Guo <lish...@intel.corp-partner.google.com>
    Gerrit-CC: Matthew Denton <mpde...@chromium.org>
    Gerrit-CC: Rafael Cintron <rafael....@microsoft.com>
    Gerrit-Attention: Sami Kyöstilä <skyo...@chromium.org>
    Gerrit-Attention: Honglin Yu <hong...@chromium.org>
    Gerrit-Comment-Date: Tue, 05 Jul 2022 13:08:32 +0000

    Sami Kyöstilä (Gerrit)

    unread,
    Jul 5, 2022, 11:20:42 PM7/5/22
    to ningxin hu, blink-revie...@chromium.org, blink-...@chromium.org, jmedle...@chromium.org, Honglin Yu, Lisha Guo, Chromium LUCI CQ, Robert Ogden, Junwei, Matthew Denton, Alex Gough, Junwei Fu, Jonathan Bingham, Rafael Cintron, chromium...@chromium.org, Kentaro Hara

    Attention is currently required from: Honglin Yu, ningxin hu.

    Patch set 21:Code-Review +1

    View Change

    3 comments:

    • Patchset:

    • File third_party/blink/renderer/modules/ml/webnn/ml_graph_xnnpack.cc:

      • Patch Set #21, Line 69: nullptr

        Let's also delete the broken instance here so that further calls to GetInstance() won't return the half-initialized object.

      • Patch Set #21, Line 127: instance_

        Can we put a GUARDED_BY(SharedXnnpackContextLock()) here?

    To view, visit change 3684745. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I40141329eb339a09b51ab997769877135f4f056a
    Gerrit-Change-Number: 3684745
    Gerrit-PatchSet: 21
    Gerrit-Owner: ningxin hu <ningx...@intel.com>
    Gerrit-Reviewer: Alex Gough <aj...@chromium.org>
    Gerrit-Reviewer: Honglin Yu <hong...@chromium.org>
    Gerrit-Reviewer: Junwei Fu <junw...@intel.com>
    Gerrit-Reviewer: Robert Ogden <rober...@chromium.org>
    Gerrit-Reviewer: Sami Kyöstilä <skyo...@chromium.org>
    Gerrit-Reviewer: ningxin hu <ningx...@intel.com>
    Gerrit-CC: Jonathan Bingham <bing...@google.com>
    Gerrit-CC: Junwei <fujunw...@gmail.com>
    Gerrit-CC: Kentaro Hara <har...@chromium.org>
    Gerrit-CC: Lisha Guo <lish...@intel.corp-partner.google.com>
    Gerrit-CC: Matthew Denton <mpde...@chromium.org>
    Gerrit-CC: Rafael Cintron <rafael....@microsoft.com>
    Gerrit-Attention: ningxin hu <ningx...@intel.com>
    Gerrit-Attention: Honglin Yu <hong...@chromium.org>
    Gerrit-Comment-Date: Wed, 06 Jul 2022 03:20:32 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: Yes
    Gerrit-MessageType: comment

    ningxin hu (Gerrit)

    unread,
    Jul 6, 2022, 2:51:22 AM7/6/22
    to blink-revie...@chromium.org, blink-...@chromium.org, jmedle...@chromium.org, Sami Kyöstilä, Honglin Yu, Lisha Guo, Chromium LUCI CQ, Robert Ogden, Junwei, Matthew Denton, Alex Gough, Junwei Fu, Jonathan Bingham, Rafael Cintron, chromium...@chromium.org, Kentaro Hara

    Attention is currently required from: Honglin Yu, Sami Kyöstilä.

    View Change

    2 comments:

    • File third_party/blink/renderer/modules/ml/webnn/ml_graph_xnnpack.cc:

      • Let's also delete the broken instance here so that further calls to GetInstance() won't return the h […]

        I suppose the instance (scoped_refptr) will be released when this function returns nullptr. Because there is no other reference at this point, the newly created SharedXnnpackContext will be deleted as well. When SharedXnnpackContext destructor is invoked, the instance_ will be reset to nullptr.

        Do you mean I need to call instance.reset() to release it explicitly before function returns nullptr?

      • Sure. I'll fix that.

    To view, visit change 3684745. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I40141329eb339a09b51ab997769877135f4f056a
    Gerrit-Change-Number: 3684745
    Gerrit-PatchSet: 21
    Gerrit-Owner: ningxin hu <ningx...@intel.com>
    Gerrit-Reviewer: Alex Gough <aj...@chromium.org>
    Gerrit-Reviewer: Honglin Yu <hong...@chromium.org>
    Gerrit-Reviewer: Junwei Fu <junw...@intel.com>
    Gerrit-Reviewer: Robert Ogden <rober...@chromium.org>
    Gerrit-Reviewer: Sami Kyöstilä <skyo...@chromium.org>
    Gerrit-Reviewer: ningxin hu <ningx...@intel.com>
    Gerrit-CC: Jonathan Bingham <bing...@google.com>
    Gerrit-CC: Junwei <fujunw...@gmail.com>
    Gerrit-CC: Kentaro Hara <har...@chromium.org>
    Gerrit-CC: Lisha Guo <lish...@intel.corp-partner.google.com>
    Gerrit-CC: Matthew Denton <mpde...@chromium.org>
    Gerrit-CC: Rafael Cintron <rafael....@microsoft.com>
    Gerrit-Attention: Sami Kyöstilä <skyo...@chromium.org>
    Gerrit-Attention: Honglin Yu <hong...@chromium.org>
    Gerrit-Comment-Date: Wed, 06 Jul 2022 06:51:13 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No

    ningxin hu (Gerrit)

    unread,
    Jul 6, 2022, 3:20:13 AM7/6/22
    to blink-revie...@chromium.org, blink-...@chromium.org, jmedle...@chromium.org, Sami Kyöstilä, Honglin Yu, Lisha Guo, Chromium LUCI CQ, Robert Ogden, Junwei, Matthew Denton, Alex Gough, Junwei Fu, Jonathan Bingham, Rafael Cintron, chromium...@chromium.org, Kentaro Hara

    Attention is currently required from: Honglin Yu, Sami Kyöstilä.

    View Change

    2 comments:

    • Patchset:

      • Patch Set #22:

        PS22 rebases this CL to solve the merge conflicts.

        Honglin, could you please help trigger the trybots to check if there are any issues after rebasing? Thanks!

    • File third_party/blink/renderer/modules/ml/webnn/ml_graph_xnnpack.cc:

      • Sure. I'll fix that.

      • Fixed in PS22.

    To view, visit change 3684745. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I40141329eb339a09b51ab997769877135f4f056a
    Gerrit-Change-Number: 3684745
    Gerrit-PatchSet: 22
    Gerrit-Owner: ningxin hu <ningx...@intel.com>
    Gerrit-Reviewer: Alex Gough <aj...@chromium.org>
    Gerrit-Reviewer: Honglin Yu <hong...@chromium.org>
    Gerrit-Reviewer: Junwei Fu <junw...@intel.com>
    Gerrit-Reviewer: Robert Ogden <rober...@chromium.org>
    Gerrit-Reviewer: Sami Kyöstilä <skyo...@chromium.org>
    Gerrit-Reviewer: ningxin hu <ningx...@intel.com>
    Gerrit-CC: Jonathan Bingham <bing...@google.com>
    Gerrit-CC: Junwei <fujunw...@gmail.com>
    Gerrit-CC: Kentaro Hara <har...@chromium.org>
    Gerrit-CC: Lisha Guo <lish...@intel.corp-partner.google.com>
    Gerrit-CC: Matthew Denton <mpde...@chromium.org>
    Gerrit-CC: Rafael Cintron <rafael....@microsoft.com>
    Gerrit-Attention: Sami Kyöstilä <skyo...@chromium.org>
    Gerrit-Attention: Honglin Yu <hong...@chromium.org>
    Gerrit-Comment-Date: Wed, 06 Jul 2022 07:20:01 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: ningxin hu <ningx...@intel.com>

    Honglin Yu (Gerrit)

    unread,
    Jul 6, 2022, 3:29:45 AM7/6/22
    to ningxin hu, blink-revie...@chromium.org, blink-...@chromium.org, jmedle...@chromium.org, Sami Kyöstilä, Lisha Guo, Chromium LUCI CQ, Robert Ogden, Junwei, Matthew Denton, Alex Gough, Junwei Fu, Jonathan Bingham, Rafael Cintron, chromium...@chromium.org, Kentaro Hara

    Attention is currently required from: Sami Kyöstilä, ningxin hu.

    Patch set 22:Commit-Queue +1

    View Change

    1 comment:

    • Patchset:

      • Patch Set #22:

        PS22 rebases this CL to solve the merge conflicts. […]

        Sure. Not sure why there is such a delay. I will try to ping that email thread.

    To view, visit change 3684745. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I40141329eb339a09b51ab997769877135f4f056a
    Gerrit-Change-Number: 3684745
    Gerrit-PatchSet: 22
    Gerrit-Owner: ningxin hu <ningx...@intel.com>
    Gerrit-Reviewer: Alex Gough <aj...@chromium.org>
    Gerrit-Reviewer: Honglin Yu <hong...@chromium.org>
    Gerrit-Reviewer: Junwei Fu <junw...@intel.com>
    Gerrit-Reviewer: Robert Ogden <rober...@chromium.org>
    Gerrit-Reviewer: Sami Kyöstilä <skyo...@chromium.org>
    Gerrit-Reviewer: ningxin hu <ningx...@intel.com>
    Gerrit-CC: Jonathan Bingham <bing...@google.com>
    Gerrit-CC: Junwei <fujunw...@gmail.com>
    Gerrit-CC: Kentaro Hara <har...@chromium.org>
    Gerrit-CC: Lisha Guo <lish...@intel.corp-partner.google.com>
    Gerrit-CC: Matthew Denton <mpde...@chromium.org>
    Gerrit-CC: Rafael Cintron <rafael....@microsoft.com>
    Gerrit-Attention: ningxin hu <ningx...@intel.com>
    Gerrit-Attention: Sami Kyöstilä <skyo...@chromium.org>
    Gerrit-Comment-Date: Wed, 06 Jul 2022 07:29:29 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: Yes

    ningxin hu (Gerrit)

    unread,
    Jul 6, 2022, 11:43:35 AM7/6/22
    to blink-revie...@chromium.org, blink-...@chromium.org, jmedle...@chromium.org, Honglin Yu, Sami Kyöstilä, Lisha Guo, Chromium LUCI CQ, Robert Ogden, Junwei, Matthew Denton, Alex Gough, Junwei Fu, Jonathan Bingham, Rafael Cintron, chromium...@chromium.org, Kentaro Hara

    Attention is currently required from: Honglin Yu, Sami Kyöstilä.

    View Change

    1 comment:

    • File third_party/blink/renderer/modules/ml/webnn/ml_graph_xnnpack.cc:

      • Patch Set #21, Line 69: nullptr

        I suppose the instance (scoped_refptr) will be released when this function returns nullptr. […]

        I realize there would be a deadlock issue if delete the broken instance inside GetInstance(), because the destructor will also hold the shared lock.

        One possible solution would be to swap the sequence of instance initialization and creation. Only after the xnnpack initialization and pthreadpool creation succeed, the instance then is created. With that, there is no such a case of destructor will be called inside GetInstance(). WDYT?

        I'll upload a new PS for review.

    To view, visit change 3684745. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I40141329eb339a09b51ab997769877135f4f056a
    Gerrit-Change-Number: 3684745
    Gerrit-PatchSet: 22
    Gerrit-Owner: ningxin hu <ningx...@intel.com>
    Gerrit-Reviewer: Alex Gough <aj...@chromium.org>
    Gerrit-Reviewer: Honglin Yu <hong...@chromium.org>
    Gerrit-Reviewer: Junwei Fu <junw...@intel.com>
    Gerrit-Reviewer: Robert Ogden <rober...@chromium.org>
    Gerrit-Reviewer: Sami Kyöstilä <skyo...@chromium.org>
    Gerrit-Reviewer: ningxin hu <ningx...@intel.com>
    Gerrit-CC: Jonathan Bingham <bing...@google.com>
    Gerrit-CC: Junwei <fujunw...@gmail.com>
    Gerrit-CC: Kentaro Hara <har...@chromium.org>
    Gerrit-CC: Lisha Guo <lish...@intel.corp-partner.google.com>
    Gerrit-CC: Matthew Denton <mpde...@chromium.org>
    Gerrit-CC: Rafael Cintron <rafael....@microsoft.com>
    Gerrit-Attention: Sami Kyöstilä <skyo...@chromium.org>
    Gerrit-Attention: Honglin Yu <hong...@chromium.org>
    Gerrit-Comment-Date: Wed, 06 Jul 2022 15:43:24 +0000

    ningxin hu (Gerrit)

    unread,
    Jul 6, 2022, 11:49:54 AM7/6/22
    to blink-revie...@chromium.org, blink-...@chromium.org, jmedle...@chromium.org, Honglin Yu, Sami Kyöstilä, Lisha Guo, Chromium LUCI CQ, Robert Ogden, Junwei, Matthew Denton, Alex Gough, Junwei Fu, Jonathan Bingham, Rafael Cintron, chromium...@chromium.org, Kentaro Hara

    Attention is currently required from: Honglin Yu, Sami Kyöstilä.

    View Change

    1 comment:

    • File third_party/blink/renderer/modules/ml/webnn/ml_graph_xnnpack.cc:

      • I realize there would be a deadlock issue if delete the broken instance inside GetInstance(), becaus […]

        Fixed the deadlock issue in PS23. PTAL. Thanks!

    To view, visit change 3684745. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I40141329eb339a09b51ab997769877135f4f056a
    Gerrit-Change-Number: 3684745
    Gerrit-PatchSet: 23
    Gerrit-Owner: ningxin hu <ningx...@intel.com>
    Gerrit-Reviewer: Alex Gough <aj...@chromium.org>
    Gerrit-Reviewer: Honglin Yu <hong...@chromium.org>
    Gerrit-Reviewer: Junwei Fu <junw...@intel.com>
    Gerrit-Reviewer: Robert Ogden <rober...@chromium.org>
    Gerrit-Reviewer: Sami Kyöstilä <skyo...@chromium.org>
    Gerrit-Reviewer: ningxin hu <ningx...@intel.com>
    Gerrit-CC: Jonathan Bingham <bing...@google.com>
    Gerrit-CC: Junwei <fujunw...@gmail.com>
    Gerrit-CC: Kentaro Hara <har...@chromium.org>
    Gerrit-CC: Lisha Guo <lish...@intel.corp-partner.google.com>
    Gerrit-CC: Matthew Denton <mpde...@chromium.org>
    Gerrit-CC: Rafael Cintron <rafael....@microsoft.com>
    Gerrit-Attention: Sami Kyöstilä <skyo...@chromium.org>
    Gerrit-Attention: Honglin Yu <hong...@chromium.org>
    Gerrit-Comment-Date: Wed, 06 Jul 2022 15:49:43 +0000

    Sami Kyöstilä (Gerrit)

    unread,
    Jul 6, 2022, 8:27:05 PM7/6/22
    to ningxin hu, blink-revie...@chromium.org, blink-...@chromium.org, jmedle...@chromium.org, Honglin Yu, Lisha Guo, Chromium LUCI CQ, Robert Ogden, Junwei, Matthew Denton, Alex Gough, Junwei Fu, Jonathan Bingham, Rafael Cintron, chromium...@chromium.org, Kentaro Hara

    Attention is currently required from: Honglin Yu, ningxin hu.

    Patch set 23:Code-Review +1

    View Change

    2 comments:

    • File third_party/blink/renderer/modules/ml/webnn/ml_graph_xnnpack.cc:

      • Patch Set #20, Line 122: instance_ = nullptr;

        Fixed in PS21.

        (Please don't forget to mark resolved comments as resolved so it's easier to see what's still outstanding.)

    • File third_party/blink/renderer/modules/ml/webnn/ml_graph_xnnpack.cc:

      • Fixed the deadlock issue in PS23. PTAL. […]

        Thanks, this should work now that there's no way to end up with a half-initialized instance and the destructor also won't run while we're holding the lock.

    To view, visit change 3684745. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I40141329eb339a09b51ab997769877135f4f056a
    Gerrit-Change-Number: 3684745
    Gerrit-PatchSet: 23
    Gerrit-Owner: ningxin hu <ningx...@intel.com>
    Gerrit-Reviewer: Alex Gough <aj...@chromium.org>
    Gerrit-Reviewer: Honglin Yu <hong...@chromium.org>
    Gerrit-Reviewer: Junwei Fu <junw...@intel.com>
    Gerrit-Reviewer: Robert Ogden <rober...@chromium.org>
    Gerrit-Reviewer: Sami Kyöstilä <skyo...@chromium.org>
    Gerrit-Reviewer: ningxin hu <ningx...@intel.com>
    Gerrit-CC: Jonathan Bingham <bing...@google.com>
    Gerrit-CC: Junwei <fujunw...@gmail.com>
    Gerrit-CC: Kentaro Hara <har...@chromium.org>
    Gerrit-CC: Lisha Guo <lish...@intel.corp-partner.google.com>
    Gerrit-CC: Matthew Denton <mpde...@chromium.org>
    Gerrit-CC: Rafael Cintron <rafael....@microsoft.com>
    Gerrit-Attention: ningxin hu <ningx...@intel.com>
    Gerrit-Attention: Honglin Yu <hong...@chromium.org>
    Gerrit-Comment-Date: Thu, 07 Jul 2022 00:26:51 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: Yes

    Junwei Fu (Gerrit)

    unread,
    Jul 6, 2022, 9:04:25 PM7/6/22
    to ningxin hu, blink-revie...@chromium.org, blink-...@chromium.org, jmedle...@chromium.org, Honglin Yu, Sami Kyöstilä, Lisha Guo, Chromium LUCI CQ, Robert Ogden, Junwei, Matthew Denton, Alex Gough, Jonathan Bingham, Rafael Cintron, chromium...@chromium.org, Kentaro Hara

    Attention is currently required from: Honglin Yu, ningxin hu.

    View Change

    1 comment:

    • File third_party/blink/renderer/modules/ml/webnn/ml_graph_xnnpack.cc:

      • Patch Set #18, Line 1126: if (array_buffer_view->byteLength() < iter->value.byte_length) {

        How about moving the validation of input / output info to base class MLGraph which can be shared by GPU backend?

    To view, visit change 3684745. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I40141329eb339a09b51ab997769877135f4f056a
    Gerrit-Change-Number: 3684745
    Gerrit-PatchSet: 18
    Gerrit-Owner: ningxin hu <ningx...@intel.com>
    Gerrit-Reviewer: Alex Gough <aj...@chromium.org>
    Gerrit-Reviewer: Honglin Yu <hong...@chromium.org>
    Gerrit-Reviewer: Junwei Fu <junw...@intel.com>
    Gerrit-Reviewer: Robert Ogden <rober...@chromium.org>
    Gerrit-Reviewer: Sami Kyöstilä <skyo...@chromium.org>
    Gerrit-Reviewer: ningxin hu <ningx...@intel.com>
    Gerrit-CC: Jonathan Bingham <bing...@google.com>
    Gerrit-CC: Junwei <fujunw...@gmail.com>
    Gerrit-CC: Kentaro Hara <har...@chromium.org>
    Gerrit-CC: Lisha Guo <lish...@intel.corp-partner.google.com>
    Gerrit-CC: Matthew Denton <mpde...@chromium.org>
    Gerrit-CC: Rafael Cintron <rafael....@microsoft.com>
    Gerrit-Attention: ningxin hu <ningx...@intel.com>
    Gerrit-Attention: Honglin Yu <hong...@chromium.org>
    Gerrit-Comment-Date: Thu, 07 Jul 2022 01:04:15 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Gerrit-MessageType: comment

    ningxin hu (Gerrit)

    unread,
    Jul 6, 2022, 9:25:03 PM7/6/22
    to blink-revie...@chromium.org, blink-...@chromium.org, jmedle...@chromium.org, Honglin Yu, Sami Kyöstilä, Lisha Guo, Chromium LUCI CQ, Robert Ogden, Junwei, Matthew Denton, Alex Gough, Junwei Fu, Jonathan Bingham, Rafael Cintron, chromium...@chromium.org, Kentaro Hara

    Attention is currently required from: Honglin Yu, Rafael Cintron, Sami Kyöstilä.

    View Change

    10 comments:

    • Patchset:

      • Patch Set #16:

        Thanks for the explanation, Ningxin! It makes sense to me. […]

        Threading model was reviewed by Sami. Mark it resolved.

    • File third_party/blink/renderer/modules/ml/webnn/ml_graph_builder.cc:

      • Fixed in PS20. Please take another look. Thanks.

        Done

      • Fixed in PS20.

        Done

    • File third_party/blink/renderer/modules/ml/webnn/ml_graph_xnnpack.cc:

      • Patch Set #18, Line 43: instance_

        Thanks for the reference, Honglin. It is very helpful. […]

        It is now protected by the shared lock. Mark it resolved.

      • > How about we add a TODO here as reminder to consider base::PostJob in the future. […]

        Done

      • Great suggestion. […]

        Done

    • File third_party/blink/renderer/modules/ml/webnn/ml_graph_xnnpack.cc:

      • The constructor is only called by GetInstance() where the shared lock is held. […]

        Done

      • (Please don't forget to mark resolved comments as resolved so it's easier to see what's still outsta […]

        sure, mark it resolved.

    • File third_party/blink/renderer/modules/ml/webnn/ml_graph_xnnpack.cc:

      • Thanks, this should work now that there's no way to end up with a half-initialized instance and the […]

        Done

    To view, visit change 3684745. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I40141329eb339a09b51ab997769877135f4f056a
    Gerrit-Change-Number: 3684745
    Gerrit-PatchSet: 23
    Gerrit-Owner: ningxin hu <ningx...@intel.com>
    Gerrit-Reviewer: Alex Gough <aj...@chromium.org>
    Gerrit-Reviewer: Honglin Yu <hong...@chromium.org>
    Gerrit-Reviewer: Junwei Fu <junw...@intel.com>
    Gerrit-Reviewer: Robert Ogden <rober...@chromium.org>
    Gerrit-Reviewer: Sami Kyöstilä <skyo...@chromium.org>
    Gerrit-Reviewer: ningxin hu <ningx...@intel.com>
    Gerrit-CC: Jonathan Bingham <bing...@google.com>
    Gerrit-CC: Junwei <fujunw...@gmail.com>
    Gerrit-CC: Kentaro Hara <har...@chromium.org>
    Gerrit-CC: Lisha Guo <lish...@intel.corp-partner.google.com>
    Gerrit-CC: Matthew Denton <mpde...@chromium.org>
    Gerrit-CC: Rafael Cintron <rafael....@microsoft.com>
    Gerrit-Attention: Rafael Cintron <rafael....@microsoft.com>
    Gerrit-Attention: Sami Kyöstilä <skyo...@chromium.org>
    Gerrit-Attention: Honglin Yu <hong...@chromium.org>
    Gerrit-Comment-Date: Thu, 07 Jul 2022 01:24:52 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: ningxin hu <ningx...@intel.com>
    Comment-In-Reply-To: Rafael Cintron <rafael....@microsoft.com>
    Comment-In-Reply-To: Sami Kyöstilä <skyo...@chromium.org>

    ningxin hu (Gerrit)

    unread,
    Jul 6, 2022, 9:25:50 PM7/6/22
    to blink-revie...@chromium.org, blink-...@chromium.org, jmedle...@chromium.org, Honglin Yu, Sami Kyöstilä, Lisha Guo, Chromium LUCI CQ, Robert Ogden, Junwei, Matthew Denton, Alex Gough, Junwei Fu, Jonathan Bingham, Rafael Cintron, chromium...@chromium.org, Kentaro Hara

    Attention is currently required from: Honglin Yu, Rafael Cintron, Sami Kyöstilä.

    View Change

    2 comments:

    • File third_party/blink/renderer/modules/ml/webnn/ml_graph_xnnpack.cc:

    • File third_party/blink/renderer/modules/ml/webnn/ml_graph_xnnpack.cc:

    Gerrit-Comment-Date: Thu, 07 Jul 2022 01:25:36 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: ningxin hu <ningx...@intel.com>

    ningxin hu (Gerrit)

    unread,
    Jul 6, 2022, 9:28:09 PM7/6/22
    to blink-revie...@chromium.org, blink-...@chromium.org, jmedle...@chromium.org, Honglin Yu, Sami Kyöstilä, Lisha Guo, Chromium LUCI CQ, Robert Ogden, Junwei, Matthew Denton, Alex Gough, Junwei Fu, Jonathan Bingham, Rafael Cintron, chromium...@chromium.org, Kentaro Hara

    Attention is currently required from: Sami Kyöstilä.

    View Change

    1 comment:

    • Patchset:

      • Patch Set #23:

        Sami, I marked the resolved comments as resolved. Please let me know if there are anything I missed. Thanks.

    To view, visit change 3684745. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I40141329eb339a09b51ab997769877135f4f056a
    Gerrit-Change-Number: 3684745
    Gerrit-PatchSet: 23
    Gerrit-Owner: ningxin hu <ningx...@intel.com>
    Gerrit-Reviewer: Alex Gough <aj...@chromium.org>
    Gerrit-Reviewer: Honglin Yu <hong...@chromium.org>
    Gerrit-Reviewer: Junwei Fu <junw...@intel.com>
    Gerrit-Reviewer: Robert Ogden <rober...@chromium.org>
    Gerrit-Reviewer: Sami Kyöstilä <skyo...@chromium.org>
    Gerrit-Reviewer: ningxin hu <ningx...@intel.com>
    Gerrit-CC: Jonathan Bingham <bing...@google.com>
    Gerrit-CC: Junwei <fujunw...@gmail.com>
    Gerrit-CC: Kentaro Hara <har...@chromium.org>
    Gerrit-CC: Lisha Guo <lish...@intel.corp-partner.google.com>
    Gerrit-CC: Matthew Denton <mpde...@chromium.org>
    Gerrit-CC: Rafael Cintron <rafael....@microsoft.com>
    Gerrit-Attention: Sami Kyöstilä <skyo...@chromium.org>
    Gerrit-Comment-Date: Thu, 07 Jul 2022 01:27:57 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Gerrit-MessageType: comment

    ningxin hu (Gerrit)

    unread,
    Jul 7, 2022, 11:31:11 AM7/7/22
    to blink-revie...@chromium.org, blink-...@chromium.org, jmedle...@chromium.org, Honglin Yu, Sami Kyöstilä, Lisha Guo, Chromium LUCI CQ, Robert Ogden, Junwei, Matthew Denton, Alex Gough, Junwei Fu, Jonathan Bingham, Rafael Cintron, chromium...@chromium.org, Kentaro Hara

    Attention is currently required from: Alex Gough, Sami Kyöstilä.

    View Change

    2 comments:

    • Patchset:

      • Patch Set #24:

        Hi Alex, I uploaded PS24 that only initializes cpuinfo pre-sandbox on Linux and initializes xnnpack with buffer partition based xnn allocator after sandbox turned on for both Windows and Linux.

        Please take another look. Thanks!

    • File content/app/content_main_runner_impl.cc:

    To view, visit change 3684745. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I40141329eb339a09b51ab997769877135f4f056a
    Gerrit-Change-Number: 3684745
    Gerrit-PatchSet: 24
    Gerrit-Owner: ningxin hu <ningx...@intel.com>
    Gerrit-Reviewer: Alex Gough <aj...@chromium.org>
    Gerrit-Reviewer: Honglin Yu <hong...@chromium.org>
    Gerrit-Reviewer: Junwei Fu <junw...@intel.com>
    Gerrit-Reviewer: Robert Ogden <rober...@chromium.org>
    Gerrit-Reviewer: Sami Kyöstilä <skyo...@chromium.org>
    Gerrit-Reviewer: ningxin hu <ningx...@intel.com>
    Gerrit-CC: Jonathan Bingham <bing...@google.com>
    Gerrit-CC: Junwei <fujunw...@gmail.com>
    Gerrit-CC: Kentaro Hara <har...@chromium.org>
    Gerrit-CC: Lisha Guo <lish...@intel.corp-partner.google.com>
    Gerrit-CC: Matthew Denton <mpde...@chromium.org>
    Gerrit-CC: Rafael Cintron <rafael....@microsoft.com>
    Gerrit-Attention: Alex Gough <aj...@chromium.org>
    Gerrit-Attention: Sami Kyöstilä <skyo...@chromium.org>
    Gerrit-Comment-Date: Thu, 07 Jul 2022 15:31:04 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Alex Gough <aj...@chromium.org>

    Michael Crouse (Gerrit)

    unread,
    Jul 7, 2022, 12:30:13 PM7/7/22
    to ningxin hu, blink-revie...@chromium.org, blink-...@chromium.org, jmedle...@chromium.org, Honglin Yu, Sami Kyöstilä, Lisha Guo, Chromium LUCI CQ, Robert Ogden, Junwei, Matthew Denton, Alex Gough, Junwei Fu, Jonathan Bingham, Rafael Cintron, chromium...@chromium.org, Kentaro Hara

    Attention is currently required from: Alex Gough, Sami Kyöstilä, ningxin hu.

    Patch set 24:Code-Review +1

    View Change

    1 comment:

    • Patchset:

      • Patch Set #24:

        Just adding myself to keep track while robertogden@ is OOO.

    To view, visit change 3684745. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I40141329eb339a09b51ab997769877135f4f056a
    Gerrit-Change-Number: 3684745
    Gerrit-PatchSet: 24
    Gerrit-Owner: ningxin hu <ningx...@intel.com>
    Gerrit-Reviewer: Alex Gough <aj...@chromium.org>
    Gerrit-Reviewer: Honglin Yu <hong...@chromium.org>
    Gerrit-Reviewer: Junwei Fu <junw...@intel.com>
    Gerrit-Reviewer: Michael Crouse <mcr...@chromium.org>
    Gerrit-Reviewer: Robert Ogden <rober...@chromium.org>
    Gerrit-Reviewer: Sami Kyöstilä <skyo...@chromium.org>
    Gerrit-Reviewer: ningxin hu <ningx...@intel.com>
    Gerrit-CC: Jonathan Bingham <bing...@google.com>
    Gerrit-CC: Junwei <fujunw...@gmail.com>
    Gerrit-CC: Kentaro Hara <har...@chromium.org>
    Gerrit-CC: Lisha Guo <lish...@intel.corp-partner.google.com>
    Gerrit-CC: Matthew Denton <mpde...@chromium.org>
    Gerrit-CC: Rafael Cintron <rafael....@microsoft.com>
    Gerrit-Attention: Alex Gough <aj...@chromium.org>
    Gerrit-Attention: ningxin hu <ningx...@intel.com>
    Gerrit-Attention: Sami Kyöstilä <skyo...@chromium.org>
    Gerrit-Comment-Date: Thu, 07 Jul 2022 16:30:00 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: Yes
    Gerrit-MessageType: comment
    Reply all
    Reply to author
    Forward
    0 new messages