Change one_hot from IndexTensor to Tensor. (#18073)
authorGregory Chanan <gchanan@fb.com>
Sun, 17 Mar 2019 22:37:42 +0000 (15:37 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Sun, 17 Mar 2019 22:40:40 +0000 (15:40 -0700)
commitfe22871b49ad0402b511bd21bce5dfc0eb7caa21
tree22373e79bcd0881f7eaf9442f123af73d2d1b004
parent3c2fccc1b4ed1dd02268d723838aae708b39f3d9
Change one_hot from IndexTensor to Tensor. (#18073)

Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/18073
ghimport-source-id: f4dadebafa0423c4c5a0e46c15b38129402d830a

Stack:
* #18072 properly device_guard IndexTensor and BoolTensor.
* **#18073 Change one_hot from IndexTensor to Tensor.**

There is no codegen change.

Reviewed By: ezyang

Differential Revision: D14485248

fbshipit-source-id: ee2ba8e5dcbbbaf0214a026c8e7ed4e6712becb0
aten/src/ATen/native/native_functions.yaml