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

Commit

Permalink
fix #18746
Browse files Browse the repository at this point in the history
  • Loading branch information
szha committed Jul 27, 2020
1 parent 9b0e548 commit b3fe739
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/mxnet/numpy/multiarray.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ def _reshape_view(a, *shape): # pylint: disable=redefined-outer-name

def _as_mx_np_array(object, ctx=None):
"""Convert object to mxnet.numpy.ndarray."""
if isinstance(object, ndarray):
if object is None or isinstance(object, ndarray):
return object
elif isinstance(object, _np.ndarray):
return array(object, dtype=object.dtype, ctx=ctx)
Expand Down

0 comments on commit b3fe739

Please sign in to comment.