Fix tensor printing bug in Python 2 (#12732)
authorDavid Riazati <davidriazati@fb.com>
Mon, 17 Dec 2018 21:08:03 +0000 (13:08 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Mon, 17 Dec 2018 21:17:51 +0000 (13:17 -0800)
commit1dbc7cff3e654af6d74ebbfb81c6f045c45d7182
treed6883fb2db4cd8dc004a99b43a4fc1c6a54b09e9
parentd71fac20ebf6b393e464d312b8a38ae1c45c3386
Fix tensor printing bug in Python 2 (#12732)

Summary:
`rsplit` doesn't have kwargs in Python 2 so this line raises an error

Fixes #15135
Pull Request resolved: https://github.com/pytorch/pytorch/pull/12732

Differential Revision: D10458630

Pulled By: driazati

fbshipit-source-id: a63e42fbc0e39e4291480775b516c98122ec05a1
test/test_jit.py
torch/_tensor_str.py