-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[js/web] update default export to include webgpu #22754
Conversation
Per my understanding, onnxruntime-web is more like the default one, while onnxruntime-web/* are for specific usages. Can we leave onnxruntime-web/webgpu as is (for symmetry), and have onnxruntime-web (without /) map to the files for onnxruntime-web/webgpu (ort.webgpu.)? |
One reason that I want to deprecate ort.webgpu.min.js is because it is actually JSEP, not webgpu. JSEP build contains webgpu and webnn and is based on wasm. "onnxruntime-web/webgpu" will be kept in a few version anyway so we can decide whether to remove it or not then |
E2E test fixed. |
### Description This PR changes the following exports: - `onnxruntime-web` now is same to `onnxruntime-web/webgpu`. - `onnxruntime-web/webgpu` is deprecating. ### Migration instructions: - use `onnxruntime-web` instead of `onnxruntime-web/webgpu`. - use `onnxruntime-web/wasm` if want to use onnxruntime-web without webgpu/webnn. ### Export table | file name | export entry | includes WASM | includes JSEP (WebGPU & WebNN) | includes WebGL | ------------- | ------------- | ----- | ----- | ----- | ort.all.min.js<br/>ort.all.js<br/>ort.all.min.mjs<br/>ort.all.mjs | `onnxruntime-web/all` | ✔️| ✔️| ✔️ | ort.min.js<br/>ort.js<br/>ort.min.mjs<br/>ort.mjs | `onnxruntime-web` | ✔️| ❌ --> ✔️| ✔️ -->❌ | ort.webgpu.min.js<br/>ort.webgpu.js<br/>ort.webgpu.min.mjs<br/>ort.webgpu.mjs | `onnxruntime-web/webgpu` | ✔️ | ✔️ |❌ | ort.wasm.min.js<br/>ort.wasm.js<br/>ort.wasm.min.mjs<br/>ort.wasm.mjs | `onnxruntime-web/wasm` | ✔️ | ❌ |❌
### Description This PR changes the following exports: - `onnxruntime-web` now is same to `onnxruntime-web/webgpu`. - `onnxruntime-web/webgpu` is deprecating. ### Migration instructions: - use `onnxruntime-web` instead of `onnxruntime-web/webgpu`. - use `onnxruntime-web/wasm` if want to use onnxruntime-web without webgpu/webnn. ### Export table | file name | export entry | includes WASM | includes JSEP (WebGPU & WebNN) | includes WebGL | ------------- | ------------- | ----- | ----- | ----- | ort.all.min.js<br/>ort.all.js<br/>ort.all.min.mjs<br/>ort.all.mjs | `onnxruntime-web/all` | ✔️| ✔️| ✔️ | ort.min.js<br/>ort.js<br/>ort.min.mjs<br/>ort.mjs | `onnxruntime-web` | ✔️| ❌ --> ✔️| ✔️ -->❌ | ort.webgpu.min.js<br/>ort.webgpu.js<br/>ort.webgpu.min.mjs<br/>ort.webgpu.mjs | `onnxruntime-web/webgpu` | ✔️ | ✔️ |❌ | ort.wasm.min.js<br/>ort.wasm.js<br/>ort.wasm.min.mjs<br/>ort.wasm.mjs | `onnxruntime-web/wasm` | ✔️ | ❌ |❌
### Description This PR changes the following exports: - `onnxruntime-web` now is same to `onnxruntime-web/webgpu`. - `onnxruntime-web/webgpu` is deprecating. ### Migration instructions: - use `onnxruntime-web` instead of `onnxruntime-web/webgpu`. - use `onnxruntime-web/wasm` if want to use onnxruntime-web without webgpu/webnn. ### Export table | file name | export entry | includes WASM | includes JSEP (WebGPU & WebNN) | includes WebGL | ------------- | ------------- | ----- | ----- | ----- | ort.all.min.js<br/>ort.all.js<br/>ort.all.min.mjs<br/>ort.all.mjs | `onnxruntime-web/all` | ✔️| ✔️| ✔️ | ort.min.js<br/>ort.js<br/>ort.min.mjs<br/>ort.mjs | `onnxruntime-web` | ✔️| ❌ --> ✔️| ✔️ -->❌ | ort.webgpu.min.js<br/>ort.webgpu.js<br/>ort.webgpu.min.mjs<br/>ort.webgpu.mjs | `onnxruntime-web/webgpu` | ✔️ | ✔️ |❌ | ort.wasm.min.js<br/>ort.wasm.js<br/>ort.wasm.min.mjs<br/>ort.wasm.mjs | `onnxruntime-web/wasm` | ✔️ | ❌ |❌
### Description This PR changes the following exports: - `onnxruntime-web` now is same to `onnxruntime-web/webgpu`. - `onnxruntime-web/webgpu` is deprecating. ### Migration instructions: - use `onnxruntime-web` instead of `onnxruntime-web/webgpu`. - use `onnxruntime-web/wasm` if want to use onnxruntime-web without webgpu/webnn. ### Export table | file name | export entry | includes WASM | includes JSEP (WebGPU & WebNN) | includes WebGL | ------------- | ------------- | ----- | ----- | ----- | ort.all.min.js<br/>ort.all.js<br/>ort.all.min.mjs<br/>ort.all.mjs | `onnxruntime-web/all` | ✔️| ✔️| ✔️ | ort.min.js<br/>ort.js<br/>ort.min.mjs<br/>ort.mjs | `onnxruntime-web` | ✔️| ❌ --> ✔️| ✔️ -->❌ | ort.webgpu.min.js<br/>ort.webgpu.js<br/>ort.webgpu.min.mjs<br/>ort.webgpu.mjs | `onnxruntime-web/webgpu` | ✔️ | ✔️ |❌ | ort.wasm.min.js<br/>ort.wasm.js<br/>ort.wasm.min.mjs<br/>ort.wasm.mjs | `onnxruntime-web/wasm` | ✔️ | ❌ |❌
Description
This PR changes the following exports:
onnxruntime-web
now is same toonnxruntime-web/webgpu
.onnxruntime-web/webgpu
is deprecating.Migration instructions:
onnxruntime-web
instead ofonnxruntime-web/webgpu
.onnxruntime-web/wasm
if want to use onnxruntime-web without webgpu/webnn.Export table
ort.all.js
ort.all.min.mjs
ort.all.mjs
onnxruntime-web/all
ort.js
ort.min.mjs
ort.mjs
onnxruntime-web
ort.webgpu.js
ort.webgpu.min.mjs
ort.webgpu.mjs
onnxruntime-web/webgpu
ort.wasm.js
ort.wasm.min.mjs
ort.wasm.mjs
onnxruntime-web/wasm