onnxruntime/js/common/lib
Jiangzhuo a503561d0c
[js] using OffscreenCanvas when DOM is not available (#19033)
### Description
when DOM API is not avaiable, using OffscreenCanvas


### Motivation and Context
In some environment like service worker or web worker, the DOM API is
not avaiable, we can use OffscreenCanvas API to replace
`document.createElement('canvas')`.
Most of the APIs of OffscreenCanvas and HTMLCanvasElement are the same,
except that `toDataUrl` is missing.

It fix this issues #19032
2024-01-12 13:54:05 -08: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 [js/common] allow import onnxruntime-common as ESM and CJS (#15772) 2023-06-12 12:05:11 -07:00
env.ts [js/webgpu] Introduce trace support (#18928) 2024-01-03 10:13:17 -08: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 [WebNN EP] Support numThreads option for WebNN CPU device (#18054) 2023-11-12 16:45:10 -08:00
onnx-value.ts [js/api] introducing IO binding for tensor (#16452) 2023-08-29 12:58:26 -07:00
tensor-conversion-impl.ts [js] using OffscreenCanvas when DOM is not available (#19033) 2024-01-12 13:54:05 -08:00
tensor-conversion.ts [js/common] allow import onnxruntime-common as ESM and CJS (#15772) 2023-06-12 12:05:11 -07:00
tensor-factory-impl.ts [js] using OffscreenCanvas when DOM is not available (#19033) 2024-01-12 13:54:05 -08:00
tensor-factory.ts [js/common] prepare work for supporting webgpu IO binding implementation (#17465) 2023-09-08 13:49:24 -07:00
tensor-impl-type-mapping.ts [js/api] introducing IO binding for tensor (#16452) 2023-08-29 12:58:26 -07:00
tensor-impl.ts [js/common] prepare work for supporting webgpu IO binding implementation (#17465) 2023-09-08 13:49:24 -07:00
tensor-utils-impl.ts [js/api] introducing IO binding for tensor (#16452) 2023-08-29 12:58:26 -07:00
tensor-utils.ts [js/common] allow import onnxruntime-common as ESM and CJS (#15772) 2023-06-12 12:05:11 -07:00
tensor.ts [js/common] prepare work for supporting webgpu IO binding implementation (#17465) 2023-09-08 13:49:24 -07:00
trace.ts [js/webgpu] Introduce trace support (#18928) 2024-01-03 10:13:17 -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 Bump Up Version to 1.17.0 (#17587) 2023-09-20 11:02:58 +08:00