You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by ma...@apache.org on 2019/01/21 21:50:49 UTC
[incubator-mxnet] branch master updated: fix doc of take operator
(#13947)
This is an automated email from the ASF dual-hosted git repository.
marcoabreu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-mxnet.git
The following commit(s) were added to refs/heads/master by this push:
new 3165262 fix doc of take operator (#13947)
3165262 is described below
commit 3165262f1f4c94aaf9bb9a333f32d4c94fddf293
Author: Tao Lv <ta...@intel.com>
AuthorDate: Tue Jan 22 05:50:32 2019 +0800
fix doc of take operator (#13947)
---
src/operator/tensor/indexing_op.cc | 11 +++++++----
1 file changed, 7 insertions(+), 4 deletions(-)
diff --git a/src/operator/tensor/indexing_op.cc b/src/operator/tensor/indexing_op.cc
index c39418d..564171d 100644
--- a/src/operator/tensor/indexing_op.cc
+++ b/src/operator/tensor/indexing_op.cc
@@ -678,11 +678,14 @@ Examples::
// In this case we will get rows 0 and 1, then 1 and 2 (calculated by wrapping around).
// Along axis 1
- take(x, [[0, 3], [-1, -2]], axis=1, mode='wrap') = [[[ 1., 2.],
- [ 3., 4.]],
+ take(x, [[0, 3], [-1, -2]], axis=1, mode='wrap') = [[[ 1. 2.]
+ [ 2. 1.]]
- [[ 3., 4.],
- [ 5., 6.]]]
+ [[ 3. 4.]
+ [ 4. 3.]]
+
+ [[ 5. 6.]
+ [ 6. 5.]]]
The storage type of ``take`` output depends upon the input storage type: