You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by sk...@apache.org on 2018/10/12 22:15:14 UTC

[incubator-mxnet] branch master updated: Fix mismatch shapes (#12793)

This is an automated email from the ASF dual-hosted git repository.

skm pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-mxnet.git


The following commit(s) were added to refs/heads/master by this push:
     new c90d16c  Fix mismatch shapes (#12793)
c90d16c is described below

commit c90d16c192a07bc191bd9f4520285149256b8f4d
Author: Chaitanya Prakash Bapat <ch...@gmail.com>
AuthorDate: Fri Oct 12 15:14:58 2018 -0700

    Fix mismatch shapes (#12793)
    
    * mismatch shape switch
    
    * closing bracket
    
    * closing bracket
---
 python/mxnet/ndarray/ndarray.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/python/mxnet/ndarray/ndarray.py b/python/mxnet/ndarray/ndarray.py
index 60b3834..c592465 100644
--- a/python/mxnet/ndarray/ndarray.py
+++ b/python/mxnet/ndarray/ndarray.py
@@ -869,7 +869,7 @@ fixed-size items.
         source_array = np.asarray(source_array, dtype=self.dtype, order='C')
         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)))
         check_call(_LIB.MXNDArraySyncCopyFromCPU(
             self.handle,
             source_array.ctypes.data_as(ctypes.c_void_p),