From 71fc1195cbe19ff36fa04d14afe481ee054f6bad Mon Sep 17 00:00:00 2001 From: Roshani Nagmote Date: Mon, 9 Jul 2018 10:19:26 -0700 Subject: [PATCH] MXNet Release-1.2.1 patch (#11548) * Fix save_params warning mesage (#11532) * Update block.py (#11540) nit fix --- python/mxnet/gluon/block.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/python/mxnet/gluon/block.py b/python/mxnet/gluon/block.py index 9c8da7ead6e2..41f56a3e804a 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: