torchscript is an actively used programming language created in 2018. The PyTorch 1.0 release candidate introduces Torch Script, a Python subset that can be JIT-compiled into C++ or other high-speed code.
- torchscript first appeared in 2018
- Have a question about torchscript not answered here? Email me and let me know how I can help.
Example code from the web:
import torch def foo(x, y): return 2*x + y traced_foo = torch.jit.trace(foo, (torch.rand(3), torch.rand(3)))
Last updated June 22nd, 2020