remove symbolic variable part 1 (#17986)
authorAiling Zhang <ailzhang@fb.com>
Fri, 5 Apr 2019 18:57:17 +0000 (11:57 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Fri, 5 Apr 2019 19:06:47 +0000 (12:06 -0700)
commitcb3a4a3d2880f5697b272a2c7630d6a730ac34fe
tree83396a44da1c7b857b2a0bf04cd781a4a9422a03
parentf3dbcfdfb53b2fddb6b5e568dbd6b9d848c821c6
remove symbolic variable part 1 (#17986)

Summary:
As discussed with gchanan we should deduplicate symbolic_variable and symbolic_script to prepare for the future merge with derivatives.yaml.

This PR moves most easy formulas to symbolic_script.

TODO: run benchmarks to make sure no perf regression

cc: apaszke zdevito wanchaol
Pull Request resolved: https://github.com/pytorch/pytorch/pull/17986

Differential Revision: D14766412

Pulled By: ailzhang

fbshipit-source-id: d95a3f876e256c0f505779a71587c985571d3b8f
torch/csrc/jit/autodiff.cpp
torch/csrc/jit/symbolic_script.cpp