From c90d16c192a07bc191bd9f4520285149256b8f4d Mon Sep 17 00:00:00 2001 From: Chaitanya Prakash Bapat Date: Fri, 12 Oct 2018 15:14:58 -0700 Subject: [PATCH] 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 60b3834054db..c5924653f386 100644 --- a/python/mxnet/ndarray/ndarray.py +++ b/python/mxnet/ndarray/ndarray.py @@ -869,7 +869,7 @@ def _sync_copyfrom(self, source_array): 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),