refactor: deprecate onnx.env.webgpu.powerPreference#1199
refactor: deprecate onnx.env.webgpu.powerPreference#1199Hengry wants to merge 1 commit intohuggingface:mainfrom
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
powerPreferencein 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.