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

Commit

Permalink
Allow loading from model files with empty weights. (#16061)
Browse files Browse the repository at this point in the history
* Allow loading from model files with empty weights.

* ci

* ci

* CI
  • Loading branch information
JiadingGai authored and wkcn committed Nov 26, 2019
1 parent a11b7ea commit 6b00b2c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions python/mxnet/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -431,6 +431,7 @@ def load_params(prefix, epoch):
aux_params = {}
if not save_dict:
logging.warning("Params file '%s' is empty", '%s-%04d.params' % (prefix, epoch))
return (arg_params, aux_params)
for k, v in save_dict.items():
tp, name = k.split(":", 1)
if tp == "arg":
Expand Down

0 comments on commit 6b00b2c

Please sign in to comment.