Allow fusion of float function arguments (#18087)
authorNatalia Gimelshein <ngimelshein@nvidia.com>
Fri, 22 Mar 2019 20:48:59 +0000 (13:48 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Fri, 22 Mar 2019 20:52:33 +0000 (13:52 -0700)
commited47b85d3bd9c33ed723d2ae5309bebb4d619ac6
tree3b7f37fa20720eb8a866c50ce2d18be55671ccfd
parent2aac18098da08552362ea081c851f06b972a8d9f
Allow fusion of float function arguments (#18087)

Summary:
so that functions like `def fn(x, p:float)` can be fused. Fixes #9940 and #11186. Fuses only float (not integer) arguments to simplify assembling arguments for fusion launch.
CPU fusion is disabled in CI and this won't be tested, but I tested it locally.
cc t-vi, apaszke
Pull Request resolved: https://github.com/pytorch/pytorch/pull/18087

Differential Revision: D14581206

Pulled By: wanchaol

fbshipit-source-id: ccb0cf79b1751706f9b2cdf1715115eae5a39fb6
test/test_jit.py
torch/csrc/jit/fuser/codegen.cpp
torch/csrc/jit/fuser/codegen.h
torch/csrc/jit/fuser/compiler.cpp
torch/csrc/jit/fuser/executor.cpp
torch/csrc/jit/passes/graph_fuser.cpp