Allow converting CharTensor to np arrays (#14710)
authorSsnL <tongzhou.wang.1994@gmail.com>
Mon, 10 Dec 2018 15:33:26 +0000 (07:33 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Mon, 10 Dec 2018 15:35:28 +0000 (07:35 -0800)
commite1b5dbf699a0c1e948c692767288a34482c37f8a
tree75b371c1dd67abfeca665dd9721b8892aa7947ff
parentb039a715ce4e9cca82ae3bf72cb84652957b2844
Allow converting CharTensor to np arrays (#14710)

Summary:
The other direction of #14700

cc soumith
Pull Request resolved: https://github.com/pytorch/pytorch/pull/14710

Reviewed By: weiyangfb

Differential Revision: D13306052

Pulled By: soumith

fbshipit-source-id: 202d038f139cf05e01069ff8d05268c66354c983
test/test_torch.py
torch/csrc/utils/tensor_numpy.cpp