onnxruntime/js/web/script
Yulong Wang 50806a7dd5
[js/web] support external data in npm test (#19377)
### Description
support external data in npm test.

This allows test runner to detect whether an external data is available
in the test folder, and if it is, load it as external data
automatically.

this feature does not parse every model to figure out whether the model
has external data. the following comments in code explained how to
determine whether should parse the model file.

```js
      // for performance consideration, we do not parse every model. when we think it's likely to have external
      // data, we will parse it. We think it's "likely" when one of the following conditions is met:
      // 1. any file in the same folder has the similar file name as the model file
      //    (e.g., model file is "model_abc.onnx", and there is a file "model_abc.pb" or "model_abc.onnx.data")
      // 2. the file size is larger than 1GB
```
2024-02-02 09:05:57 -08:00
..
build.ts [WebNN EP] Support WebNN async API with Asyncify (#19145) 2024-01-24 15:37:35 -08:00
generate-webgl-operator-md.ts [js/webgpu] generate operator table for webgpu (#15954) 2023-05-20 12:20:41 -07:00
generate-webgpu-operator-md.ts [js/web] JSEP Attention & MultiHeadAttention (#17742) 2023-11-17 12:23:52 -08:00
parse-profiler.ts
prepack.ts [js] update prepack script to use exact version (#17484) 2023-09-13 00:07:16 -07:00
pull-prebuilt-wasm-artifacts.ts Add training WASM generation to Web CI pipeline (#17319) 2023-09-08 15:49:47 -07:00
test-runner-cli-args.ts [WebNN EP] Support WebNN async API with Asyncify (#19145) 2024-01-24 15:37:35 -08:00
test-runner-cli.ts [js/web] support external data in npm test (#19377) 2024-02-02 09:05:57 -08:00
tsconfig.json [js/web] set noUnusedParameters to true and fix a few bugs (#18404) 2023-11-15 09:16:29 -08:00