aaronmarkham commented on a change in pull request #15317: fix doc for the op
sort() and argsort()
URL: https://github.com/apache/incubator-mxnet/pull/15317#discussion_r297451736
##########
File path: src/operator/tensor/ordering_op.cc
##########
@@ -114,7 +114,7 @@ Examples::
[ 1., 3.]]
// flattens and then sorts
- sort(x) = [ 1., 1., 3., 4.]
+ sort(x, axis=None) = [ 1., 1., 3., 4.]
Review comment:
This sort makes sense.
But I'm thrown off by the other example. Sorting along the last axis would
be 3 then 4 unless it is descending rather than ascending. Does this need to be
specified for clarity?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services