android-demo-app icon indicating copy to clipboard operation
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.

Open bestpower opened this issue 4 years ago • 1 comments

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?

bestpower avatar Nov 09 '21 09:11 bestpower

I have the same question,how to solve it?

96005900 avatar Nov 21 '22 12:11 96005900