JiangZhaoh commented on a change in pull request #17255: Set np default dtype( 
float32 <-> float64)
URL: https://github.com/apache/incubator-mxnet/pull/17255#discussion_r364612206
 
 

 ##########
 File path: include/mxnet/imperative.h
 ##########
 @@ -136,6 +137,34 @@ class Imperative {
     }
     return old;
   }
+  /*! \brief return current ndarray default dtype,
+   *  float32(false), float64(true).
+   * */
+  int is_np_default_dtype() const {
+    if (is_np_default_dtype_global_) {
+      return 2;
 
 Review comment:
   Sure.

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

Reply via email to