Add addcmul, lerp to fuser, enable scalar->float specialization in symbolic script...
authorWanchao Liang <wanchaol@users.noreply.github.com>
Mon, 25 Mar 2019 18:02:17 +0000 (11:02 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Mon, 25 Mar 2019 18:05:45 +0000 (11:05 -0700)
commit6c9b312fd48c5a3e00719be881aa067b436d05e5
tree75c1619ea2d9479619d0ec82dc39ccd183cdff24
parent50df3e5e2e2c51db6389b5c47c048f9db112c5c3
Add addcmul, lerp to fuser, enable scalar->float specialization in symbolic script (#18081)

Summary:
This PR did two things:

1. Enable scalar->float specialization in symbolic script, so AD formula that contains scalar in the schema, should write `float` instead.
2. add addcmul, lerp to AD and fuser.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/18081

Differential Revision: D14490493

Pulled By: wanchaol

fbshipit-source-id: b3b86d960d5f051b30733bc908b19786111cdaa4
test/test_jit.py
torch/csrc/jit/autodiff.cpp
torch/csrc/jit/fuser/codegen.cpp
torch/csrc/jit/graph_executor.cpp
torch/csrc/jit/passes/graph_fuser.cpp
torch/csrc/jit/symbolic_script.cpp
torch/csrc/jit/symbolic_script.h