Skip to content

Commit

Permalink
fix doc of take operator (apache#13947)
Browse files Browse the repository at this point in the history
  • Loading branch information
TaoLv authored and haohuw committed Jun 23, 2019
1 parent 4822d5e commit c22a0cd
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/operator/tensor/indexing_op.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit c22a0cd

Please sign in to comment.