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/03/08 13:54:13 UTC

[GitHub] marcoabreu closed pull request #10034: Update an incorrect description in the API doc.

marcoabreu closed pull request #10034: Update an incorrect description in the API doc. 
URL: https://github.com/apache/incubator-mxnet/pull/10034
 
 
   

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/perl-package/AI-MXNet/lib/AI/MXNet/NDArray/Sparse.pm b/perl-package/AI-MXNet/lib/AI/MXNet/NDArray/Sparse.pm
index cbc9f7d6e2b..9b243758852 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 c65d7ce408e..da33f586bee 100644
--- a/python/mxnet/ndarray/sparse.py
+++ b/python/mxnet/ndarray/sparse.py
@@ -310,7 +310,7 @@ def __itruediv__(self, other):
     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
         ----------


 

----------------------------------------------------------------
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