diff --git a/src/backends/onnx.js b/src/backends/onnx.js index a64f9d160..159c90cfb 100644 --- a/src/backends/onnx.js +++ b/src/backends/onnx.js @@ -93,14 +93,14 @@ if (ORT_SYMBOL in globalThis) { supportedDevices.push('webnn-npu', 'webnn-gpu', 'webnn-cpu', 'webnn'); } - if (apis.IS_WEBGPU_AVAILABLE) { - supportedDevices.push('webgpu'); - } - supportedDevices.push('wasm'); defaultDevices = ['wasm']; } +if (apis.IS_WEBGPU_AVAILABLE) { + supportedDevices.push('webgpu'); +} + // @ts-ignore const InferenceSession = ONNX.InferenceSession;