onnxruntime/js/common
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
..
lib [js/web] Update API for ort.env.webgpu (#23026) 2024-12-11 10:24:14 -08:00
test adds support for Uint8ClampedArray (#21985) 2024-09-11 22:02:30 -07:00
.gitignore
.npmignore
build.js [js] change default formatter for JavaScript/TypeScript from clang-format to Prettier (#21728) 2024-08-14 16:51:22 -07:00
package-lock.json bumps up version in main from 1.20 -> 1.21 (#22482) 2024-10-17 12:32:35 -07:00
package.json bumps up version in main from 1.20 -> 1.21 (#22482) 2024-10-17 12:32:35 -07:00
README.md
tsconfig.json
typedoc.json [js/common] use TS type inference to eliminate unknown (#23012) 2024-12-04 19:01:26 -08:00
webpack.config.js [js] change default formatter for JavaScript/TypeScript from clang-format to Prettier (#21728) 2024-08-14 16:51:22 -07:00

ONNX Runtime JavaScript API

ONNX Runtime JavaScript API is a unified API for all JavaScript usages. It's dependency of the following NPM packages:

  • onnxruntime-node
  • onnxruntime-web
  • onnxruntime-react-native

This package (onnxruntime-common) is not designed for using directly. Please consider to install one of the NPM packages above according to target platform.

License

License information can be found here.