Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
Fix mismatch shapes (#12793)
Browse files Browse the repository at this point in the history
* mismatch shape switch

* closing bracket

* closing bracket
  • Loading branch information
ChaiBapchya authored and sandeep-krishnamurthy committed Oct 12, 2018
1 parent 06bf600 commit c90d16c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/mxnet/ndarray/ndarray.py
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit c90d16c

Please sign in to comment.