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

Commit

Permalink
Update block.py (#11532)
Browse files Browse the repository at this point in the history
  • Loading branch information
piiswrong authored and szha committed Jul 2, 2018
1 parent 030fbc3 commit 0ae38c7
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 @@ -333,14 +333,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 0ae38c7

Please sign in to comment.