add tensor.to to script (#15976)
authorElias Ellison <eellison@fb.com>
Mon, 14 Jan 2019 23:44:50 +0000 (15:44 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Mon, 14 Jan 2019 23:49:31 +0000 (15:49 -0800)
commit4fb39318963fd6ac64d4fc312d850004858641da
treefe759e5232cced07527e39060f87502502d8149a
parent8964a2e6e6f035590260ac5d4ab21f6e3d8a5204
add tensor.to to script (#15976)

Summary:
Previously it only worked with keyword arguments. Now it is fully compatible.

Fix for: https://github.com/pytorch/pytorch/issues/15478
Pull Request resolved: https://github.com/pytorch/pytorch/pull/15976

Differential Revision: D13643979

Pulled By: eellison

fbshipit-source-id: 6a47bce7db362da80452adffebd2732f8e62a240
test/test_jit.py
torch/csrc/jit/register_prim_ops.cpp