builtin ivalues sort (#19572)
authorElias Ellison <eellison@fb.com>
Tue, 23 Apr 2019 23:30:49 +0000 (16:30 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Tue, 23 Apr 2019 23:38:08 +0000 (16:38 -0700)
commit5119cc7cdf01093747713410dc27c3ab22b28ba3
tree8cf395287bd1efe8afe718c62be9db13a947b795
parent80020b3d2d310dd00835756b231371da64026acc
builtin ivalues sort (#19572)

Summary:
Add sorting to all the lists which we specialize on (Tensor, int, float, bool).

First part of https://github.com/pytorch/pytorch/issues/19372
Pull Request resolved: https://github.com/pytorch/pytorch/pull/19572

Differential Revision: D15052677

Pulled By: eellison

fbshipit-source-id: 301e8e0e3e29e04aca1311410db0a474fd833cff
test/test_jit.py
torch/csrc/jit/register_prim_ops.cpp