From 0ab1e18fa6aff3f4b36f916a33217235f414fbdb Mon Sep 17 00:00:00 2001 From: Bing Xu Date: Fri, 4 Sep 2015 21:51:54 -0600 Subject: [PATCH] update --- python/mxnet/narray.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/mxnet/narray.py b/python/mxnet/narray.py index 71e82c8a4554..b0f38e94c3a5 100755 --- a/python/mxnet/narray.py +++ b/python/mxnet/narray.py @@ -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: @@ -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: