From 51248e7864866018beeb52eec5a8789120a8409b Mon Sep 17 00:00:00 2001 From: Eric Junyuan Xie Date: Mon, 2 Jul 2018 16:25:50 -0700 Subject: [PATCH] Update block.py (#11532) --- python/mxnet/gluon/block.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/python/mxnet/gluon/block.py b/python/mxnet/gluon/block.py index 9c8da7ead6e2..24dc092448db 100644 --- a/python/mxnet/gluon/block.py +++ b/python/mxnet/gluon/block.py @@ -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: