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/11/10 06:57:58 UTC

[GitHub] nswamy closed pull request #13171: Fixed Sparse astype doc string formatting error

nswamy closed pull request #13171: Fixed Sparse astype doc string formatting error
URL: https://github.com/apache/incubator-mxnet/pull/13171
 
 
   

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/python/mxnet/ndarray/sparse.py b/python/mxnet/ndarray/sparse.py
index 7b4cc90648c..3d18a596d4f 100644
--- a/python/mxnet/ndarray/sparse.py
+++ b/python/mxnet/ndarray/sparse.py
@@ -195,7 +195,8 @@ def asnumpy(self):
         return self.tostype('default').asnumpy()
 
     def astype(self, dtype, copy=True):
-        """Returns a copy of the array after casting to a specified type.
+        """Return a copy of the array after casting to a specified type.
+
         Parameters
         ----------
         dtype : numpy.dtype or str
@@ -205,6 +206,7 @@ def astype(self, dtype, copy=True):
             allocated ndarray on the same context. If this is set to
             `False`, and the dtype requested is the same as the ndarray's
             dtype, the ndarray is returned instead of a copy.
+
         Examples
         --------
         >>> x = mx.nd.sparse.zeros('row_sparse', (2,3), dtype='float32')


 

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