Skip to content
This repository has been archived by the owner on Aug 28, 2024. It is now read-only.

Getting CppException: Lite Interpreter version number does not match #206

Closed
stefan-falk opened this issue Nov 11, 2021 · 2 comments
Closed

Comments

@stefan-falk
Copy link

Running the Android app after generating the model throws the following error:

E/AndroidRuntime: FATAL EXCEPTION: Thread-2
    Process: org.pytorch.demo.speechrecognition, PID: 10645
    com.facebook.jni.CppException: Lite Interpreter verson number does not match. The model version must be between 3 and 5But the model version is 7 ()
    Exception raised from parseMethods at ../torch/csrc/jit/mobile/import.cpp:320 (most recent call first):
    (no backtrace available)
        at org.pytorch.LiteNativePeer.initHybrid(Native Method)
        at org.pytorch.LiteNativePeer.<init>(LiteNativePeer.java:23)
        at org.pytorch.LiteModuleLoader.load(LiteModuleLoader.java:29)
        at org.pytorch.demo.speechrecognition.MainActivity.recognize(MainActivity.java:197)
        at org.pytorch.demo.speechrecognition.MainActivity.run(MainActivity.java:183)
        at java.lang.Thread.run(Thread.java:923)

Is this a dependency issue?

@Treshank
Copy link

Duplicate of #202. I think

@stefan-falk
Copy link
Author

@Treshank indeed! Thanks for linking!

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

2 participants