android-demo-app
android-demo-app copied to clipboard
com.facebook.jni.CppException: view size is not compatible with input tensor's size and stride (at least one dimension spans across two contiguous subspaces). Use .reshape(...) instead.
In android app, my model output array as float[][], but can not get the output tensor as codes:
outputTensor = module.forward(IValue.from(inputTensor)).toTensor();
How to solve please?
I have the same question,how to solve it?