mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-21 21:52:11 +00:00
### Description This PR contains a few changes in /js/common/ to support a coming PR for a full implementation of webgpu IO binding. - allows pass-through if value is already a Tensor instance in return value of `handler.run()` called by `InferenceSession.run()` (inference-session-impl.ts). Specifically, onnxruntime-node and onnxruntime-react-native uses native bindings to generate a Tensor-like object so we need to create a real Tensor instance here; for onnxruntime-web the return value is already a Tensor instance. - adds new types for GPU buffer supported types: `'float32'|'int32'` -> `'float32'|'float16'|'int32'|'int64'|'uint32'|'bool'` - exposes types `GpuBufferDataTypes` together with `CpuPinnedDataTypes` and `TextureDataTypes` as exported |
||
|---|---|---|
| .. | ||
| lib | ||
| test | ||
| .gitignore | ||
| .npmignore | ||
| build.js | ||
| package-lock.json | ||
| package.json | ||
| README.md | ||
| tsconfig.json | ||
| typedoc.json | ||
| webpack.config.js | ||
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.