mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-17 21:10:43 +00:00
### 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](
|
||
|---|---|---|
| .. | ||
| backends | ||
| ort-schema | ||
| attribute-with-cache-key.ts | ||
| attribute.ts | ||
| backend.ts | ||
| execution-plan.ts | ||
| graph.ts | ||
| instrument.ts | ||
| model.ts | ||
| operators.ts | ||
| opset.ts | ||
| session-handler-inference.ts | ||
| session.ts | ||
| tensor.ts | ||
| util.ts | ||