After I read this toturial, which I learnt is that I should use
jit.script to transfer my module into TorchScript if there are conditional expressions or other uncertainties during execution in its forward propagation.
If my comprehension is correct, then can I say that it’s OK to use
jit.script any time to replace
jit.trace? Since I figure no drawback of
Also I cannot understand why the toturial calls somthing like
jit.trace(jit.script(module)) then. Does this make any sense? Can’t I just use