Skip to content

Commit

Permalink
Update module.py (apache#9658)
Browse files Browse the repository at this point in the history
  • Loading branch information
eric-haibin-lin authored and szha committed Feb 1, 2018
1 parent 0900f64 commit 846f269
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/mxnet/module/module.py
Original file line number Diff line number Diff line change
Expand Up @@ -303,11 +303,11 @@ def _impl(name, arr, cache):
initializer(name, arr)

attrs = self._symbol.attr_dict()
for name, arr in self._arg_params.items():
for name, arr in sorted(self._arg_params.items()):
desc = InitDesc(name, attrs.get(name, None))
_impl(desc, arr, arg_params)

for name, arr in self._aux_params.items():
for name, arr in sorted(self._aux_params.items()):
desc = InitDesc(name, attrs.get(name, None))
_impl(desc, arr, aux_params)

Expand Down

0 comments on commit 846f269

Please sign in to comment.