onnxruntime/js/web/test
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
..
data/ops [JS/WebGPU] Use non-matmul implementation for ConvTranspose in channel-first case. (#20022) 2024-03-23 11:19:14 -07:00
e2e [js] Make error friendly when isOrtFormat is undefined (#19958) 2024-03-27 02:07:00 -07:00
training/e2e
unittests [js/web] use ApiTensor insteadof onnxjs Tensor in TensorResultValidator (#19358) 2024-02-20 17:33:21 -08:00
op-test-schema.json
suite-test-list.jsonc [js/web] fix suite test list for zero sized tensor (#19638) 2024-02-24 10:09:07 -08:00
test-main.ts [js/test] align web test runner flags with ort.env (#19790) 2024-03-13 12:00:36 -07:00
test-runner.ts [js/web] workaround NPM test fetch failure (#20020) 2024-03-26 21:35:49 -07:00
test-shared.ts [js/web] workaround NPM test fetch failure (#20020) 2024-03-26 21:35:49 -07:00
test-types.ts [js/web] support external data in npm test (#19377) 2024-02-02 09:05:57 -08:00