Skip to content

Commit

Permalink
Update block.py (apache#11532)
Browse files Browse the repository at this point in the history
  • Loading branch information
piiswrong authored and Roshrini committed Jul 3, 2018
1 parent daa957c commit 51248e7
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions python/mxnet/gluon/block.py
Original file line number Diff line number Diff line change
Expand Up @@ -327,14 +327,17 @@ def save_parameters(self, filename):
ndarray.save(filename, arg_dict)

def save_params(self, filename):
"""[Deprecated] Please use save_parameters.
"""[Deprecated] Please use save_parameters. Note that if you want load
from SymbolBlock later, please use export instead.
Save parameters to file.
filename : str
Path to file.
"""
warnings.warn("save_params is deprecated. Please use save_parameters.")
warnings.warn("save_params is deprecated. Please use save_parameters. "
"Note that if you want load from SymbolBlock later, please "
"use export instead.")
try:
self.collect_params().save(filename, strip_prefix=self.prefix)
except ValueError as e:
Expand Down

0 comments on commit 51248e7

Please sign in to comment.