I am working on one android application using tenserflow. when I run the application and debug the code it shows java.lang.NoSuchMethodError: No virtual method My code:- ClassifierActivity.java Classifier.java Answer Add this in your Manifest file where you have declared activity and exported. android:hardwar…
Tag: tensorflow
Cant convert between a TensorFlowLite tensor with type UINT8 and a Java object of type [[F (which is compatible with the TensorFlowLite type FLOAT32)
I’m trying to run a Tflite model on android, with flutter but i’m getting this error- E/AndroidRuntime(18461): Caused by: java.lang.IllegalArgumentException: Cannot copy to a TensorFlowLite tensor (serving_default_sequential_5_input:0) with 150528 bytes from a Java Buffer with 602112 bytes. E/Andr…