Open Jagan3534 opened 1 year ago
Please try that below lines , It's work for me.
final Tensor inputTensor = TensorImageUtils.bitmapToFloat32Tensor(resizedBitmap, PrePostProcessor.NO_MEAN_RGB, PrePostProcessor.NO_STD_RGB); IValue[] outputTuple = mModule.forward(IValue.from(inputTensor)).toTuple(); final Tensor outputTensor = outputTuple[0].toTensor(); final float[] outputs = outputTensor.getDataAsFloatArray();
Thanks..
for our custom .ptl model we got error in this Ivalue
for this line code we we got this output
the output of this line
from next line onwards we are facing error
and
i tried in both ways
i got the error like this
if anyone solve this error please help us