mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-16 21:00:14 +00:00
### Description
* follows the packaging approach according to the design document
* adds `ENABLE_TRAINING` boolean flag to `BUILD_DEFS`
* modifies `package.json` to include training submodule
* modifies build script to handle, validate, and minimize training WASM
artifacts
* adds the binding for the new backend with training enabled & the new
training artifacts
* adds training backend
* edits `index.ts` to use training backend depending on `BUILD_DEFS`
* edits `wasm-factory.ts` to use the training artifacts if necessary
### Motivation and Context
* we are in the process of adding web bindings to enable training.
* Adding the "glue" to allow onnxruntime-web to use the training WASM
artifacts is required for this work.
* Since BUILD_DEFS is defined and used at build time, I thought that it
made sense to bundle the changes to building in the same PR.
#### Related work
* #16521 allowed for training artifacts to be built
* #17333 must be merged in before this one
---------
Co-authored-by: Yulong Wang <7679871+fs-eire@users.noreply.github.com>
30 lines
660 B
TypeScript
30 lines
660 B
TypeScript
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
// Licensed under the MIT License.
|
|
|
|
declare module 'onnxruntime-web' {
|
|
export * from 'onnxruntime-common';
|
|
}
|
|
|
|
declare module 'onnxruntime-web/experimental' {
|
|
export * from 'onnxruntime-web';
|
|
}
|
|
|
|
declare module 'onnxruntime-web/wasm' {
|
|
export * from 'onnxruntime-web';
|
|
}
|
|
|
|
declare module 'onnxruntime-web/wasm-core' {
|
|
export * from 'onnxruntime-web';
|
|
}
|
|
|
|
declare module 'onnxruntime-web/webgl' {
|
|
export * from 'onnxruntime-web';
|
|
}
|
|
|
|
declare module 'onnxruntime-web/webgpu' {
|
|
export * from 'onnxruntime-web';
|
|
}
|
|
|
|
declare module 'onnxruntime-web/training' {
|
|
export * from 'onnxruntime-web';
|
|
}
|