Skip to content

Commit

Permalink
fix (apache#10814)
Browse files Browse the repository at this point in the history
  • Loading branch information
piiswrong authored May 4, 2018
1 parent ab6a25e commit 3bba4c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/mxnet/gluon/parameter.py
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ def set_data(self, data):
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
Expand Down

0 comments on commit 3bba4c8

Please sign in to comment.