Solved by Chame_call in post #2 
              
              
                The problem was that I ran the model on the gpu before exporting with jit. 
So I move the model to cpu and exported the model again. 
And it worked.