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/09/27 05:24:48 UTC

[GitHub] ChaiBapchya commented on a change in pull request #12677: [MXNET-995] Constant Initializer for ND Array

ChaiBapchya commented on a change in pull request #12677: [MXNET-995] Constant Initializer for ND Array
URL: https://github.com/apache/incubator-mxnet/pull/12677#discussion_r220796702
 
 

 ##########
 File path: python/mxnet/ndarray/ndarray.py
 ##########
 @@ -869,7 +869,7 @@ def _sync_copyfrom(self, source_array):
         source_array = np.ascontiguousarray(source_array, dtype=self.dtype)
         if source_array.shape != self.shape:
             raise ValueError('Shape inconsistent: expected %s vs got %s'%(
-                str(self.shape), str(source_array.shape)))
+                str(source_array.shape), str(self.shape)))
 
 Review comment:
   Have a look at  #12676 
   I found it to be odd. Hence created an issue and fixed it in this PR
   Don't you think so?

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