../code/conceptPage.scroll id torchscript name torchscript appeared 2018 tags pl description The PyTorch 1.0 release candidate introduces Torch Script, a Python subset that can be JIT-compiled into C++ or other high-speed code. reference https://pytorch.org/docs/stable/jit.html example import torch def foo(x, y): return 2*x + y traced_foo = torch.jit.trace(foo, (torch.rand(3), torch.rand(3)))