- Notifications
You must be signed in to change notification settings - Fork964
refactor: deprecate onnx.env.webgpu.powerPreference#1199
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:main
Are you sure you want to change the base?
refactor: deprecate onnx.env.webgpu.powerPreference#1199
Uh oh!
There was an error while loading.Please reload this page.
Conversation
Creating a custom device is supported in onnxruntime-web, but there are also several things to be careful with:
And regarding the "powerPreference" option, it actually makes little difference:
I am also trying to figure out if setting |
This can be linked to#960, which we can now work on thanks to onnxruntime-web exposing the device (as you point out in this PR). |
Onnxruntime-web deprecated
powerPreference
in WebGPUFlag.Instead, they suggested
Reference:
https://onnxruntime.ai/docs/api/js/interfaces/Env.WebGpuFlags.html#powerPreference:~:text=Create%20your%20own%20GPUAdapter%2C%20use%20it%20to%20create%20a%20GPUDevice%20instance%20and%20set%20device%20property%20if%20you%20want%20to%20use%20a%20specific%20power%20preference.