Skip to content

Commit

Permalink
fix (apache#10814)
Browse files Browse the repository at this point in the history
  • Loading branch information
piiswrong committed May 4, 2018
1 parent 5328f36 commit 380b3c7
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 380b3c7

Please sign in to comment.