You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by GitBox <gi...@apache.org> on 2018/07/09 17:19:28 UTC
[GitHub] anirudh2290 closed pull request #11548: MXNet Release-1.2.1 patch
anirudh2290 closed pull request #11548: MXNet Release-1.2.1 patch
URL: https://github.com/apache/incubator-mxnet/pull/11548
This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:
As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):
diff --git a/python/mxnet/gluon/block.py b/python/mxnet/gluon/block.py
index 9c8da7ead6e..41f56a3e804 100644
--- a/python/mxnet/gluon/block.py
+++ b/python/mxnet/gluon/block.py
@@ -327,14 +327,19 @@ 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 to 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 to load from SymbolBlock later, please "
+ "use export instead. For details, see "
+ "https://mxnet.incubator.apache.org/tutorials/gluon/save_lo"
+ "ad_params.html")
try:
self.collect_params().save(filename, strip_prefix=self.prefix)
except ValueError as e:
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services