onnxruntime/js/common/lib
Caroline Zhu dd355e39a0
[js/web/training] Added parameters methods (#18250)
### Description
* Implemented: `getParametersSize`, `getContiguousParameters`
(equivalent to copyParametersToBuffer), and `loadParametersBuffer`
(equivalent to copyParametersFromBuffer)
* as part of these changes, getParametersSize was added to the
TrainingSession interface so that users know what size buffer to create
for loadParametersBuffer
* The parameters methods in the interface were modified to take in a
Float32Array instead


### Motivation and Context
* part of the work for implementing web bindings for training
* enables federated learning in the web
* previous  PR: #18006

---------

Co-authored-by: Ashwini Khade <askhade@microsoft.com>
2023-11-27 10:30:13 -08:00
..
backend-impl.ts Add training interfaces to js/common (#17333) 2023-09-29 19:05:10 -07:00
backend.ts [js/web/training] Added parameters methods (#18250) 2023-11-27 10:30:13 -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] support Range operator (#17233) 2023-09-30 02:05:32 -07:00
index.ts Add training interfaces to js/common (#17333) 2023-09-29 19:05:10 -07:00
inference-session-impl.ts Add training interfaces to js/common (#17333) 2023-09-29 19:05:10 -07: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/common] allow import onnxruntime-common as ESM and CJS (#15772) 2023-06-12 12:05:11 -07: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/common] prepare work for supporting webgpu IO binding implementation (#17465) 2023-09-08 13:49:24 -07: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
training-session-impl.ts [js/web/training] Added parameters methods (#18250) 2023-11-27 10:30:13 -08:00
training-session.ts [js/web/training] Added parameters methods (#18250) 2023-11-27 10:30:13 -08:00
version.ts Bump Up Version to 1.17.0 (#17587) 2023-09-20 11:02:58 +08:00