Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
szha committed Jul 31, 2020
1 parent eb3ce7f commit 266a10a
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):
np_dtype = _np.dtype(object.dtype).type
Expand Down

0 comments on commit 266a10a

Please sign in to comment.