Skip to content

[WebNN EP] Support Softmax since version 13#17714

Merged
guschmue merged 1 commit into
microsoft:mainfrom
zesongw:support_softmax13
Oct 2, 2023
Merged

[WebNN EP] Support Softmax since version 13#17714
guschmue merged 1 commit into
microsoft:mainfrom
zesongw:support_softmax13

Conversation

@zesongw
Copy link
Copy Markdown
Contributor

@zesongw zesongw commented Sep 27, 2023

Description

WebNN only supports 2-D input tensor along axis 1. For now, we use Reshape and Transpose wraparound to get the compatible input.

Motivation and Context

Enable more models to run on WebNN.

WebNN only supports 2-D input tensor along axis 1. For now, we use Reshape and Transpose wraparound to get the compatible input.
@zesongw
Copy link
Copy Markdown
Contributor Author

zesongw commented Sep 27, 2023

@fdwr, @guschmue, PTAL, thanks!

Copy link
Copy Markdown
Contributor

@fdwr fdwr left a comment

Choose a reason for hiding this comment

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

Thanks Zesong. Minor comments. It certainly is more complicated now 😅, but it supports opsets 7 to 20. 👍

@guschmue guschmue added the ep:WebNN WebNN execution provider label Sep 29, 2023
@guschmue
Copy link
Copy Markdown
Contributor

/azp run ONNX Runtime Web CI Pipeline

@guschmue
Copy link
Copy Markdown
Contributor

/azp run Linux CPU CI Pipeline,Linux CPU Minimal Build E2E CI Pipeline,Linux GPU CI Pipeline,Linux GPU TensorRT CI Pipeline,Linux OpenVINO CI Pipeline,Linux QNN CI Pipeline,MacOS CI Pipeline,Windows ARM64 QNN CI Pipeline,Windows CPU CI Pipeline

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@guschmue
Copy link
Copy Markdown
Contributor

/azp run Windows GPU CI Pipeline,Windows GPU TensorRT CI Pipeline,onnxruntime-binary-size-checks-ci-pipeline,orttraining-linux-ci-pipeline,orttraining-linux-gpu-ci-pipeline,orttraining-ortmodule-distributed

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 6 pipeline(s).

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 9 pipeline(s).

@guschmue
Copy link
Copy Markdown
Contributor

guschmue commented Oct 2, 2023

/azp Windows x64 QNN CI Pipeline

@azure-pipelines
Copy link
Copy Markdown

Command 'Windows' is not supported by Azure Pipelines.

Supported commands
  • help:
    • Get descriptions, examples and documentation about supported commands
    • Example: help "command_name"
  • list:
    • List all pipelines for this repository using a comment.
    • Example: "list"
  • run:
    • Run all pipelines or specific pipelines for this repository using a comment. Use this command by itself to trigger all related pipelines, or specify specific pipelines to run.
    • Example: "run" or "run pipeline_name, pipeline_name, pipeline_name"
  • where:
    • Report back the Azure DevOps orgs that are related to this repository and org
    • Example: "where"

See additional documentation.

@guschmue
Copy link
Copy Markdown
Contributor

guschmue commented Oct 2, 2023

/azp run Windows x64 QNN CI Pipeline

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@guschmue guschmue merged commit f158f39 into microsoft:main Oct 2, 2023
@fdwr
Copy link
Copy Markdown
Contributor

fdwr commented Oct 3, 2023

@zesongw Since this is merged now, can we fix the comments in a future change?

guschmue pushed a commit that referenced this pull request Oct 12, 2023
### Description
<!-- Describe your changes. -->

Improve readability by fixing misplaced comments and utilizing
std::rotate.


### Motivation and Context

Resolve some comments in
#17714
kleiti pushed a commit to kleiti/onnxruntime that referenced this pull request Mar 22, 2024
### Description
<!-- Describe your changes. -->
WebNN only supports 2-D input tensor along axis 1. For now, we use
Reshape and Transpose wraparound to get the compatible input.


### Motivation and Context
<!-- - Why is this change required? What problem does it solve?
- If it fixes an open issue, please link to the issue here. -->
Enable more models to run on WebNN.
kleiti pushed a commit to kleiti/onnxruntime that referenced this pull request Mar 22, 2024
### Description
<!-- Describe your changes. -->

Improve readability by fixing misplaced comments and utilizing
std::rotate.


### Motivation and Context

Resolve some comments in
microsoft#17714
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ep:WebNN WebNN execution provider

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants