onnxruntime/js/web/lib/wasm
shalvamist 851b0ce936
[js/web][Fix] - updating the C API to catch non-tensor data (#12811)
Added a check for tensor validation on the input - this change fixes the
quiet abort WASM takes when processing a non tensor data in
"OrtGetTensorData"

**Motivation and Context**
At the current status when we try to process non-tensor data through
OrtGetTensorData and exception is thrown which results in a quiet abort
from WASM (assuming WASM was built without exception handling).

I added a check in the C API to catch this case and output a meaningful
message to the user

[example_error_github_12622.zip](https://github.com/microsoft/onnxruntime/files/9464328/example_error_github_12622.zip)
2022-09-21 13:59:17 -07:00
..
binding [js] upgrade async@3.2.3 /js/ (#11421) 2022-05-03 23:41:36 -07:00
proxy-worker [js/web] fix lint error when run without ort-web TS types (#10429) 2022-02-17 22:34:38 -08:00
options-utils.ts [js/web] support string tensor for wasm backend (#7891) 2021-06-03 00:44:50 -07:00
proxy-messages.ts [js/web] WebAssembly profiling (#8932) 2021-09-07 17:18:08 -07:00
proxy-wrapper.ts [js] upgrade async@3.2.3 /js/ (#11421) 2022-05-03 23:41:36 -07:00
run-options.ts [js/web] support string tensor for wasm backend (#7891) 2021-06-03 00:44:50 -07:00
session-handler.ts [js/web] WebAssembly profiling (#8932) 2021-09-07 17:18:08 -07:00
session-options.ts [js/web] WebAssembly profiling (#8932) 2021-09-07 17:18:08 -07:00
string-utils.ts [js/web] support string tensor for wasm backend (#7891) 2021-06-03 00:44:50 -07:00
wasm-core-impl.ts [js/web][Fix] - updating the C API to catch non-tensor data (#12811) 2022-09-21 13:59:17 -07:00
wasm-factory.ts [js] upgrade async@3.2.3 /js/ (#11421) 2022-05-03 23:41:36 -07:00