Hi,
I have a problem with PytorchMobile on Android. I have trained a model on Python and converted it to Android version. When I feed the models with Torch.ones both of them produce the same output. I read the png image in Android with:
final Tensor inputTensor = TensorImageUtils.bitmapToFloat32Tensor(img,
                TensorImageUtils.TORCHVISION_NORM_MEAN_RGB, TensorImageUtils.TORCHVISION_NORM_STD_RGB);

in Python, I read the image with PIL.Image.open(path) and use torchvision.transforms.ToTensor() to convert it to Tensor. These two operations result in different outputs and also changes the model output accordingly. Can you help me with this so that both image read operations produce the same input tensor for my mode? Thanks.