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 2018/03/08 13:54:16 UTC
[incubator-mxnet] branch master updated: Update an incorrect
description in the API doc. (#10034)
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 7b4594d Update an incorrect description in the API doc. (#10034)
7b4594d is described below
commit 7b4594da6c2fdeafdb5e31658444eeee0cf72537
Author: Haibin Lin <li...@gmail.com>
AuthorDate: Thu Mar 8 21:54:12 2018 +0800
Update an incorrect description in the API doc. (#10034)
* Update sparse.py
* Update Sparse.pm
---
perl-package/AI-MXNet/lib/AI/MXNet/NDArray/Sparse.pm | 2 +-
python/mxnet/ndarray/sparse.py | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/perl-package/AI-MXNet/lib/AI/MXNet/NDArray/Sparse.pm b/perl-package/AI-MXNet/lib/AI/MXNet/NDArray/Sparse.pm
index cbc9f7d..9b24375 100644
--- a/perl-package/AI-MXNet/lib/AI/MXNet/NDArray/Sparse.pm
+++ b/perl-package/AI-MXNet/lib/AI/MXNet/NDArray/Sparse.pm
@@ -276,7 +276,7 @@ use overload '+=' => sub { ($_[0] + $_[1])->copyto($_[0]) },
=head2 slice
- Returns a sliced view of this array.
+ Returns a newly created array based on the indexing key.
Parameters
----------
diff --git a/python/mxnet/ndarray/sparse.py b/python/mxnet/ndarray/sparse.py
index c65d7ce..da33f58 100644
--- a/python/mxnet/ndarray/sparse.py
+++ b/python/mxnet/ndarray/sparse.py
@@ -310,7 +310,7 @@ class CSRNDArray(BaseSparseNDArray):
def __getitem__(self, key):
"""x.__getitem__(i) <=> x[i]
- Returns a sliced view of this array.
+ Returns a newly created NDArray based on the indexing key.
Parameters
----------
--
To stop receiving notification emails like this one, please contact
marcoabreu@apache.org.