Describe the issue
Environment
NextJS v14
MacOS
Description
I've already successfully run my model on onnxruntime-web to get the result I wanted.
Now I want to use webgpu to accelerate it.
According to the document, To use WebGPU EP, you just need to make 2 small changes:
I do so but got Package path ./webgpu is not exported from package /Users...
I've also tried directly add executionProviders: ['webgpu'] and ensure typeof navigator !== 'undefined' && 'gpu' in navigator but got webgpu was not found in backend
Also tried using worker, react-router, but the result is still the same.
Does anyone have the same issue?
To reproduce
npx create-next-app@14
yarn add onnxruntime-web
/**
add
import * as ort from 'onnxruntime-web/webgpu'
in a file
**/
yarn
yarn dev
and then get error:
Package path ./webgpu is not exported from package /Users/...
Urgency
No response
ONNX Runtime Installation
Released Package
ONNX Runtime Version or Commit ID
"onnxruntime-web": "1.20.1"
Execution Provider
'webgpu' (WebGPU)
Describe the issue
Environment
NextJS v14
MacOS
Description
I've already successfully run my model on
onnxruntime-webto get the result I wanted.Now I want to use webgpu to accelerate it.
According to the document,
To use WebGPU EP, you just need to make 2 small changes:I do so but got
Package path ./webgpu is not exported from package /Users...I've also tried directly add
executionProviders: ['webgpu']and ensuretypeof navigator !== 'undefined' && 'gpu' in navigatorbut got webgpu was not found in backendAlso tried using worker, react-router, but the result is still the same.
Does anyone have the same issue?
To reproduce
and then get error:
Package path ./webgpu is not exported from package /Users/...Urgency
No response
ONNX Runtime Installation
Released Package
ONNX Runtime Version or Commit ID
"onnxruntime-web": "1.20.1"
Execution Provider
'webgpu' (WebGPU)