Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

Bad error message #251

Open
kleinicke opened this issue Dec 27, 2020 · 0 comments
Open

Bad error message #251

kleinicke opened this issue Dec 27, 2020 · 0 comments

Comments

@kleinicke
Copy link

kleinicke commented Dec 27, 2020

The onnx model doesn't seem to load properly, but the error message doesn't help.

import { InferenceSession } from "onnxjs";
async function test() {
    const sess = new InferenceSession();
    await sess.loadModel("whatever");
test()

And the error message is

invalid wire type 4 at offset 16

Since it doesn't matter which path I put into the loadModel, it seems like this is the error message for not being able to load the model? Could this be replaced by something more expressive?

Similar problems was in #58 .

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant