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

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
antinucleon committed Sep 5, 2015
1 parent 75eabd4 commit 0ab1e18
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/mxnet/narray.py
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ def binary_narray_function(lhs, rhs, out=None):
"""Internal binary function
"""
if out:
if isinstance(out, NArray):
if isinstance(out, NArray) == False:
raise TypeError('out must be NArray')
else:
if not accept_empty_mutate:
Expand All @@ -427,7 +427,7 @@ def binary_narray_function(lhs, rhs, out=None):
def unary_narray_function(src, out=None):
"""internal NArray function"""
if out:
if isinstance(out, NArray):
if isinstance(out, NArray) == False:
raise TypeError('out must be NArray')
else:
if not accept_empty_mutate:
Expand Down

0 comments on commit 0ab1e18

Please sign in to comment.