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

Commit

Permalink
fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ubuntu committed May 29, 2019
1 parent c283601 commit 3e9893d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion python/mxnet/gluon/parameter.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,9 @@ def grad_req(self, req):

@property
def shape(self):
if is_np_shape():
if self._shape is None:
return None
elif is_np_shape():
return tuple(i if i != 0 else -1 for i in self._shape)
else:
return self._shape
Expand Down

0 comments on commit 3e9893d

Please sign in to comment.