Solved by AfonsoSalgadoSousa in post #3 
              
              
                Thanks for the reply. I fixed the problem with your suggestion. The problem was on trying to save the FP32 version of the model with torch.jit.save. Using torch.save fixed the problem.