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 2020/01/13 19:18:15 UTC

[GitHub] [incubator-mxnet] haojin2 commented on a change in pull request #17283: [NumPy]Set numpy default dtype

haojin2 commented on a change in pull request #17283: [NumPy]Set numpy default dtype
URL: https://github.com/apache/incubator-mxnet/pull/17283#discussion_r365980370
 
 

 ##########
 File path: python/mxnet/numpy/random.py
 ##########
 @@ -99,7 +99,8 @@ def uniform(low=0.0, high=1.0, size=None, dtype=None, ctx=None, out=None):
         ``low`` and ``high`` are both scalars. Otherwise,
         ``np.broadcast(low, high).size`` samples are drawn.
     dtype : {'float16', 'float32', 'float64'}, optional
-        Data type of output samples. Default is 'float32'
+        Data type of output samples. Default is 'float32' or 'float64', which
+        denends on your current default dtype.
 
 Review comment:
   probably say something like "when np_default_type=True" to clearly state which setting will result in which data type.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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