onnxruntime/js/web/lib/wasm
Yulong Wang 79c4ed9a45
[js/webgpu] support error pop and kernel name (#17260)
### Description
This PR contains changes to support error pop and kernel name.

- Add a function `JsepGetNodeName` to allow reading kernel name from JS
to C++
- When in debug mode ( `env.debug = true;` ) or in profiling mode (
`env.webgpu.profilingMode = 'default';` ), kernel name will be read from
ORT; otherwise use the kernel pointer ( a number ) as kernel name to
save calls from JS to C++.
- When in debug mode, WebGPU validation errors will be recorded and if
any error occurs, `inferenceSession.run()` will fail (Promise get
rejected). Behavior when not in debug mode is not changed. This is
because recording errors are not zero-overhead, and GPU validation
errors should occur consistently in and not in debug mode.
- Add `jsepOnRunStart()` and `jsepOnRunEnd()` hook to:
   - allow implementation of the features mentioned above.
   - pass session ID to backend.
2023-08-25 08:08:15 -07:00
..
binding [js/webgpu] support error pop and kernel name (#17260) 2023-08-25 08:08:15 -07:00
jsep [js/webgpu] support error pop and kernel name (#17260) 2023-08-25 08:08:15 -07:00
proxy-worker [js/webgpu] support proxy for webgpu (#15851) 2023-05-15 16:23:13 -07:00
proxy-messages.ts [js/webgpu] support proxy for webgpu (#15851) 2023-05-15 16:23:13 -07:00
proxy-wrapper.ts [js/webgpu] support proxy for webgpu (#15851) 2023-05-15 16:23:13 -07:00
run-options.ts [js/web] enable ONNX Runtime Web error messages in JS (#16335) 2023-06-15 09:45:41 -07:00
session-handler.ts [JS/Web] Added SkipLayerNormalization operator. (#17102) 2023-08-18 09:59:03 -07:00
session-options.ts [js/web] enable ONNX Runtime Web error messages in JS (#16335) 2023-06-15 09:45:41 -07:00
wasm-common.ts [js/webgpu] make IndicesHelper implementation implicit (#17193) 2023-08-23 14:41:35 -07:00
wasm-core-impl.ts [js/webgpu] support error pop and kernel name (#17260) 2023-08-25 08:08:15 -07:00
wasm-factory.ts [js/web] add target ort.webgpu.min.js (#15780) 2023-05-04 10:05:39 -07:00
wasm-utils.ts [js/web] enable ONNX Runtime Web error messages in JS (#16335) 2023-06-15 09:45:41 -07:00