You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by GitBox <gi...@apache.org> on 2018/02/07 18:58:50 UTC
[GitHub] piiswrong closed pull request #9717: Doc improvement
piiswrong closed pull request #9717: Doc improvement
URL: https://github.com/apache/incubator-mxnet/pull/9717
This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:
As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):
diff --git a/src/operator/tensor/indexing_op.cc b/src/operator/tensor/indexing_op.cc
index b90a95dcf7..cce4537ae3 100644
--- a/src/operator/tensor/indexing_op.cc
+++ b/src/operator/tensor/indexing_op.cc
@@ -352,12 +352,16 @@ will have shape ``(i0, i1, d1, d2)``, computed by::
- `mode`- Only `clip` mode is supported for now.
Examples::
+ x = [4. 5. 6.]
+
+ // Trivial case, take the second element along the first axis.
+ take(x, [1]) = [ 5. ]
x = [[ 1., 2.],
[ 3., 4.],
[ 5., 6.]]
- // takes elements with specified indices along axis 0
+ // In this case we will get rows 0 and 1, then 1 and 2. Along axis 0
take(x, [[0,1],[1,2]]) = [[[ 1., 2.],
[ 3., 4.]],
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services