onnxruntime/js/web/lib/onnxjs
Nanashi ca465dc087
[js] Make error friendly when isOrtFormat is undefined (#19958)
### Description
Make error friendly when isOrtFormat is undefined
(`onnxruntime.InferenceSession.create` is called with ArrayBuffer or
Uint8Array).

### Motivation and Context
I was trying to run my onnx model in WebGL EP, but it gave me the error
"Cannot read properties of null (reading 'irVersion')".
I used debugger to find that actual error is `int64 is not supported`,
but the error was invisible for me.
So I made it to show both error when isOrtFormat is undefined.
<s>I haven't written unit test yet, so I'm making it draft. (I have no
idea about how do I test this though...)</s>
[d62d942](d62d9425ba)
2024-03-27 02:07:00 -07:00
..
backends [js/web] set noUnusedParameters to true and fix a few bugs (#18404) 2023-11-15 09:16:29 -08:00
ort-schema [js] enable formatter for more file types (#16888) 2023-07-28 15:46:58 -07:00
attribute-with-cache-key.ts [js] optimize eslint config (#18460) 2023-11-20 12:00:56 -08:00
attribute.ts [js/web] upgrade onnx-proto version (#16722) 2023-07-18 16:36:39 -07:00
backend.ts [js/web] WebGPU backend via JSEP (#14579) 2023-04-24 15:21:18 -07:00
execution-plan.ts [js/web] set noUnusedParameters to true and fix a few bugs (#18404) 2023-11-15 09:16:29 -08:00
graph.ts Fix Resize op input check (#16594) 2023-08-09 15:42:30 -07:00
instrument.ts [js/web] set noUnusedParameters to true and fix a few bugs (#18404) 2023-11-15 09:16:29 -08:00
model.ts [js] Make error friendly when isOrtFormat is undefined (#19958) 2024-03-27 02:07:00 -07:00
operators.ts [js/web] WebGL backend refactor (#8586) 2021-08-12 12:30:49 -07:00
opset.ts [js/web] WebGPU backend via JSEP (#14579) 2023-04-24 15:21:18 -07:00
session-handler-inference.ts [js/web/training] runTrainStep implementation (#18006) 2023-11-02 08:32:50 -07:00
session.ts [js/web] use esbuild to accelerate bundle build (#17745) 2023-10-06 13:37:37 -07:00
tensor.ts js/webgpu: argmax,argmin,softmax support (#16882) 2023-08-02 18:16:19 -07:00
util.ts [js/web] set noUnusedParameters to true and fix a few bugs (#18404) 2023-11-15 09:16:29 -08:00