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

Commit

Permalink
rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
JiangZhaoh committed Feb 25, 2020
1 parent e1023a2 commit e21d8f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/mxnet/ndarray/numpy/_op.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def zeros(shape, dtype=None, order='C', ctx=None): # pylint: disable=redefined-
ctx = str(current_context())
else:
ctx = str(ctx)
if dtype is not None and not isinstance(dtype, str):
if dtype is None:
dtype = _np.float64 if is_np_default_dtype() else _np.float32
return _api_internal.zeros(shape, dtype, ctx)

Expand Down

0 comments on commit e21d8f2

Please sign in to comment.