mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-22 14:15:01 +08:00
Move argsort to C++
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/17099 Differential Revision: D14165671 Pulled By: ezyang fbshipit-source-id: 3871de6874fe09871ebd9b8943c13c9af325bf33
This commit is contained in:
committed by
Facebook Github Bot
parent
37890610b0
commit
722cbe3064
@ -2206,11 +2206,18 @@ Example::
|
||||
|
||||
add_docstr_all('sort',
|
||||
r"""
|
||||
sort(dim=None, descending=False) -> (Tensor, LongTensor)
|
||||
sort(dim=-1, descending=False) -> (Tensor, LongTensor)
|
||||
|
||||
See :func:`torch.sort`
|
||||
""")
|
||||
|
||||
add_docstr_all('argsort',
|
||||
r"""
|
||||
argsort(dim=-1, descending=False) -> LongTensor
|
||||
|
||||
See :func: `torch.argsort`
|
||||
""")
|
||||
|
||||
add_docstr_all('sparse_dim',
|
||||
r"""
|
||||
sparse_dim() -> int
|
||||
|
Reference in New Issue
Block a user