Android Studio and TensorFlow Lite

Hello, I’m a newbie to Android Studio and TensorFlow Lite.
Recently I’ve been doing a research on implementing a image classification model on an Android application but my program’s currrently crashed. I checked the Logcat and found out the error was Cannot copy from a TensorFlowLite tensor (StatefulPartitionedCall:0) with 2800 bytes to a Java Buffer with 28 bytes. It seemed the error ocurred when the program called the statement, outputProbabilityBuffer.getBuffer().rewind());.
May I ask anyone for help?

Hi @linlin7, Could you please provide stand alone code to reproduce the issue.Thank You

Hi @linlin7

You have to check again what the model expects for input and what you are feeding it with

Come back if you have more questions.