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

Commit

Permalink
fix intc mapping on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
szha committed Jul 19, 2020
1 parent ededb86 commit 49462af
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/mxnet/numpy/multiarray.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,8 @@ def _as_mx_np_array(object, ctx=None):
if isinstance(object, ndarray):
return object
elif isinstance(object, _np.ndarray):
return array(object, dtype=object.dtype, ctx=ctx)
np_dtype = _np.dtype(object.dtype).type
return array(object, dtype=np_dtype, ctx=ctx)
elif isinstance(object, (integer_types, numeric_types)):
return object
elif isinstance(object, (list, tuple)):
Expand Down

0 comments on commit 49462af

Please sign in to comment.