onnxruntime/js/common/lib
Yulong Wang 4538d31a8b
[js/webgpu] expose a few properties in WebGPU API (#19857)
### Description
This change exposes a few properties in `ort.env.webgpu` to resolve
feature requirement mentioned in properties in
https://github.com/microsoft/onnxruntime/pull/14579#discussion_r1519612619.

- Add `powerPreference` and `forceFallbackAdapter` in `ort.env.webgpu`,
to allow users to set the value of the properties before the first
inference session is created.
- Add readonly property `adapter` in `ort.env.webgpu` to allow users to
get the adapter instance. Now users can access `ort.env.webgpu.device`
and `ort.env.webgpu.adapter`.

@xenova @beaufortfrancois
2024-03-12 19:50:51 -07:00
..
backend-impl.ts [js/web] revise backend registration (#18715) 2023-12-20 14:45:55 -08:00
backend.ts [js/web] revise backend registration (#18715) 2023-12-20 14:45:55 -08:00
env-impl.ts
env.ts [js/webgpu] expose a few properties in WebGPU API (#19857) 2024-03-12 19:50:51 -07:00
index.ts [js/webgpu] Introduce trace support (#18928) 2024-01-03 10:13:17 -08:00
inference-session-impl.ts [js/webgpu] Introduce trace support (#18928) 2024-01-03 10:13:17 -08:00
inference-session.ts [js/webgpu] Support capture and replay for jsep (#18989) 2024-01-30 18:28:03 -08:00
onnx-model.ts [js] enable external data loading for ort-web (#19087) 2024-01-12 19:24:24 -08:00
onnx-value.ts
tensor-conversion-impl.ts [js] using OffscreenCanvas when DOM is not available (#19033) 2024-01-12 13:54:05 -08:00
tensor-conversion.ts
tensor-factory-impl.ts [js] using OffscreenCanvas when DOM is not available (#19033) 2024-01-12 13:54:05 -08:00
tensor-factory.ts
tensor-impl-type-mapping.ts [js] changes to allow Float16Array if any polyfill is available (#19305) 2024-02-21 00:31:06 -08:00
tensor-impl.ts [js] changes to allow Float16Array if any polyfill is available (#19305) 2024-02-21 00:31:06 -08:00
tensor-utils-impl.ts
tensor-utils.ts
tensor.ts [js/webgpu] allow uint8 tensors for webgpu (#19545) 2024-02-16 18:28:27 -08:00
trace.ts [js/common] move 'env.wasm.trace' to 'env.trace' (#19617) 2024-02-27 11:07:15 -08:00
training-session-impl.ts [js/web/training] lazyResetGrad implementation (#18711) 2023-12-11 17:36:54 -08:00
training-session.ts [js/web/training] lazyResetGrad implementation (#18711) 2023-12-11 17:36:54 -08:00
version.ts [ORT 1.17.0 release] Bump up version to 1.18.0 (#19170) 2024-01-17 11:18:32 -08:00