onnxruntime/js/web/test
Yulong Wang e605870783
[js/web] Update API for ort.env.webgpu (#23026)
### Description

This PR is a replacement of #21671. It offers a new way for accessing
the following:
- `ort.env.webgpu.adapter`:
- **deprecating**. There is no point to get the value of it. Once
`GPUDevice.adapterInfo` is supported, there is no point to set the value
too.
- `ort.env.webgpu.device`:
  - set value of `GPUDevice` if user created it. Use at user's own risk.
- get value of `Promise<GPUDevice>`. if not exist, create a new one. if
exist return it.
- `ort.env.webgpu.powerPreference`:
- **deprecating**. encouraging users to set `ort.env.webgpu.device` if
necessary.
- `ort.env.webgpu.forceFallbackAdapter`:
- **deprecating**. encouraging users to set `ort.env.webgpu.device` if
necessary.
2024-12-11 10:24:14 -08:00
..
data/ops [js/webgpu] Add GatherND (#22847) 2024-12-04 09:57:32 -08:00
e2e [js/web] update default export to include webgpu (#22754) 2024-12-04 09:46:45 -08:00
unittests [js] change default formatter for JavaScript/TypeScript from clang-format to Prettier (#21728) 2024-08-14 16:51:22 -07:00
op-test-schema.json [js/web] Add support for int4/uint4 tensor (#21720) 2024-08-15 21:32:10 -07:00
suite-test-list.jsonc [js/webgpu] Add GatherND (#22847) 2024-12-04 09:57:32 -08:00
test-main.ts [js/webgpu] Manage model download with a specific unittest option (#22214) 2024-09-30 18:27:43 -07:00
test-runner.ts [js/web] Update API for ort.env.webgpu (#23026) 2024-12-11 10:24:14 -08:00
test-shared.ts [js] change default formatter for JavaScript/TypeScript from clang-format to Prettier (#21728) 2024-08-14 16:51:22 -07:00
test-types.ts [js/webgpu] Manage model download with a specific unittest option (#22214) 2024-09-30 18:27:43 -07:00