Open zjnlxk opened 2 years ago
You need to convert the output to Tensor
final Tensor outputTensor = mModule.forward(IValue.from(mInputTensor)).toTensor();
I am also facing the same issue. @bebbieyin it's already converted to Tensor
After all, I solved the problem. The error kept showing up even after converting the output to Tensor. By upgrading my gradle to higher version, the model started working well. @zjnlxk to to update your gradle version