Skip to content

[js/webgpu] Support int32 type for binary#16901

Merged
fs-eire merged 2 commits intomicrosoft:mainfrom
xhcao:webgpu_typedbinary
Aug 18, 2023
Merged

[js/webgpu] Support int32 type for binary#16901
fs-eire merged 2 commits intomicrosoft:mainfrom
xhcao:webgpu_typedbinary

Conversation

@xhcao
Copy link
Copy Markdown
Contributor

@xhcao xhcao commented Jul 28, 2023

Description

Enable typed binary and support int32 type for binary.

Co-authored-by: Xing Xu xing.xu@intel.com

@xhcao xhcao force-pushed the webgpu_typedbinary branch from 11f995a to 45a0db2 Compare July 28, 2023 08:17
@xhcao xhcao marked this pull request as ready for review July 28, 2023 08:18
@xhcao
Copy link
Copy Markdown
Contributor Author

xhcao commented Jul 28, 2023

@qjia7 @gyagp, PTAL

@xhcao xhcao changed the title [js/web] Support int32 type for binary [js/webgpu] Support int32 type for binary Jul 28, 2023
Copy link
Copy Markdown
Contributor

@qjia7 qjia7 left a comment

Choose a reason for hiding this comment

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

Overall looks good. Just some nits.
Will transfer it to @fs-eire @guschmue to review. Thanks.

@xhcao xhcao force-pushed the webgpu_typedbinary branch from 45a0db2 to 7812f53 Compare July 28, 2023 09:24
@guschmue
Copy link
Copy Markdown
Contributor

/azp run ONNX Runtime Web CI Pipeline

@azure-pipelines
Copy link
Copy Markdown

No commit pushedDate could be found for PR 16901 in repo microsoft/onnxruntime

@xhcao xhcao force-pushed the webgpu_typedbinary branch from 7812f53 to 4c8c92e Compare July 31, 2023 01:42
@guschmue guschmue added the ep:WebGPU ort-web webgpu provider label Jul 31, 2023
@guschmue
Copy link
Copy Markdown
Contributor

CI pipeline is nagging:

You can reproduce these results locally by using `lintrunner`. To set up lintrunner locally, see https://github.com/microsoft/onnxruntime/blob/main/docs/Coding_Conventions_and_Standards.md#linting .
Error: Process completed with exit code 1.

@xhcao xhcao force-pushed the webgpu_typedbinary branch from 4c8c92e to 4da97a9 Compare August 1, 2023 03:28
Copy link
Copy Markdown
Contributor

@axinging axinging left a comment

Choose a reason for hiding this comment

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

@fs-eire, your comments are resolved, PTAL

@xhcao xhcao force-pushed the webgpu_typedbinary branch from 4da97a9 to 55b3d87 Compare August 1, 2023 05:08
@guschmue
Copy link
Copy Markdown
Contributor

guschmue commented Aug 1, 2023

/azp run ONNX Runtime Web CI Pipeline

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@guschmue
Copy link
Copy Markdown
Contributor

guschmue commented Aug 1, 2023

lint nagging:
C:\a_work\1\s\js\web\lib\wasm\jsep\webgpu\ops\binary-op.ts
185:7 error Assignment to function parameter 'cacheKey' no-param-reassign
185:27 error Expected '===' and instead saw '==' eqeqeq

You can run it local from the js/ directory with
npm run lint

@xhcao xhcao force-pushed the webgpu_typedbinary branch from 55b3d87 to d92caff Compare August 2, 2023 00:36
@axinging
Copy link
Copy Markdown
Contributor

axinging commented Aug 2, 2023

lint nagging: C:\a_work\1\s\js\web\lib\wasm\jsep\webgpu\ops\binary-op.ts 185:7 error Assignment to function parameter 'cacheKey' no-param-reassign 185:27 error Expected '===' and instead saw '==' eqeqeq

You can run it local from the js/ directory with npm run lint

Thanks @guschmue, lint is done, PTAL

@fs-eire
Copy link
Copy Markdown
Contributor

fs-eire commented Aug 2, 2023

/azp run ONNX Runtime Web CI Pipeline

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@xhcao xhcao force-pushed the webgpu_typedbinary branch from d92caff to 5f7eea5 Compare August 2, 2023 07:32
@guschmue
Copy link
Copy Markdown
Contributor

guschmue commented Aug 2, 2023

/azp run ONNX Runtime Web CI Pipeline

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@guschmue
Copy link
Copy Markdown
Contributor

guschmue commented Aug 2, 2023

/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).

@guschmue
Copy link
Copy Markdown
Contributor

guschmue commented Aug 2, 2023

/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

No commit pushedDate could be found for PR 16901 in repo microsoft/onnxruntime

@guschmue
Copy link
Copy Markdown
Contributor

/azp run ONNX Runtime Web CI Pipeline

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@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 2 pipeline(s).

guschmue
guschmue previously approved these changes Aug 15, 2023
@xhcao xhcao force-pushed the webgpu_typedbinary branch 2 times, most recently from 70f98c3 to 6958526 Compare August 16, 2023 02:48
@fs-eire
Copy link
Copy Markdown
Contributor

fs-eire commented Aug 16, 2023

/azp run ONNX Runtime Web CI Pipeline

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@xhcao xhcao force-pushed the webgpu_typedbinary branch from 6958526 to 7148392 Compare August 16, 2023 05:02
xhcao and others added 2 commits August 17, 2023 09:06
Co-authored-by: Xing Xu <xing.xu@intel.com>
lintrunner passed in local, but bots failed duw to:
   onnxruntime/core/providers/js/operators/binary.cc:9:  Lines should be <= 120 characters long  [whitespace/line_length] [2]
@xhcao xhcao force-pushed the webgpu_typedbinary branch from 7148392 to 3c802a2 Compare August 17, 2023 02:12
@fs-eire
Copy link
Copy Markdown
Contributor

fs-eire commented Aug 17, 2023

/azp run ONNX Runtime Web CI Pipeline

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@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 2 pipeline(s).

@fs-eire fs-eire merged commit dd3b2ce into microsoft:main Aug 18, 2023
kleiti pushed a commit to kleiti/onnxruntime that referenced this pull request Mar 22, 2024
### Description
Enable typed binary and support int32 type for binary.

Co-authored-by: Xing Xu <xing.xu@intel.com>

---------

Co-authored-by: Xing Xu <xing.xu@intel.com>
siweic0 pushed a commit to siweic0/onnxruntime-web that referenced this pull request May 9, 2024
### Description
Enable typed binary and support int32 type for binary.

Co-authored-by: Xing Xu <xing.xu@intel.com>

---------

Co-authored-by: Xing Xu <xing.xu@intel.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ep:WebGPU ort-web webgpu provider

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants