This is an automated email from the ASF dual-hosted git repository.
jxie pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-mxnet.git
The following commit(s) were added to refs/heads/master by this push:
new 3bba4c8 fix (#10814)
3bba4c8 is described below
commit 3bba4c8f6362df8b3355404002eab6a6c88123d6
Author: Eric Junyuan Xie <[email protected]>
AuthorDate: Fri May 4 15:59:20 2018 -0700
fix (#10814)
---
python/mxnet/gluon/parameter.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/python/mxnet/gluon/parameter.py b/python/mxnet/gluon/parameter.py
index 04694df..a3a1e32 100644
--- a/python/mxnet/gluon/parameter.py
+++ b/python/mxnet/gluon/parameter.py
@@ -366,7 +366,7 @@ class Parameter(object):
self.shape = data.shape
if self._data is None:
- assert self._deferred_init is not None, \
+ assert self._deferred_init, \
"Parameter '%s' has not been initialized"%self.name
self._deferred_init = self._deferred_init[:3] + (data,)
return
--
To stop receiving notification emails like this one, please contact
[email protected].