onnxruntime/js/web/test/e2e
Yulong Wang 59f42cccb8
[js/common] refactor tensor type in onnxruntime-common (#15843)
### Description
<!-- Describe your changes. -->

refactor tensor type in onnxruntime-common.

### Motivation and Context
There major motivation is that I am doing a local change to address the
API part of #15312. And I am doing a refactoring of onnxruntime-common
anyway (#15772).

The `tensor.ts` and `tensor-impl.ts` are too large, so I split contents
into multiple files to make the type declarations clearer.

The original target of this change is for API only ( ie. do not refactor
any implementation.). However, there are a few type/implementation
inconsistencies so I also made minimal changes to fix them.

### Changes
- extract `TensorUtils` for non-template interfaces
- extract `TensorFactory` for all overloads of `Tensor.fromImage()`
- refactor options type that used for `Tensor.fromImage()`
- fix JSDoc comments to make option descriptions consistent with actual
type declarations
- fix an inconsistency for `options.format` and `options.bitmapFormat`;
change all `bitmapFormat` to `format`
- extract `ConversionUtils` for `tensor.toDataURL()` and
`tensor.toImageData()`
- put implementations into multiple files from `tensor-impl.ts`
- fix a bug that cause unittest fail. put comments for future fix.
2023-06-09 16:19:29 -07:00
..
.gitignore
browser-test-wasm-image-tensor-image.js [js/common] refactor tensor type in onnxruntime-common (#15843) 2023-06-09 16:19:29 -07:00
browser-test-wasm-multi-session-create.js [js/web] allow multiple inference session creating concurrently (#10784) 2022-03-07 11:35:06 -08:00
browser-test-wasm-no-threads.js
browser-test-wasm-path-override-filename.js
browser-test-wasm-path-override-prefix.js
browser-test-wasm-proxy-no-threads.js [js/web] optimize bundle file size (#9817) 2021-11-22 13:56:55 -08:00
browser-test-wasm-proxy.js [js/web] a bugfix and add tests for wasm proxy worker (#9048) 2021-09-14 10:38:58 -07:00
browser-test-wasm.js
browser-test-webgl.js
common.js [js/web] allow multiple inference session creating concurrently (#10784) 2022-03-07 11:35:06 -08:00
karma.conf.js [js/web] optimize bundle file size (#9817) 2021-11-22 13:56:55 -08:00
model.onnx
node-test-main-no-threads.js
node-test-main.js
node-test-wasm-path-override-filename.js
node-test-wasm-path-override-prefix.js
package.json [js] upgrade packages in js/web/test/e2e (#14334) 2023-01-25 18:03:48 -08:00
run.js [js] upgrade dependencies and enable strict mode (#14930) 2023-03-22 15:05:04 -07:00
simple-http-server.js [js/web] optimize bundle file size (#9817) 2021-11-22 13:56:55 -08:00