by @github
Autograd automatically differentiates native Torch code. Inspired by the original Python version.