Skip to content

Commit 4098a03

Browse files
author
Peng Li
committed
refine the warning message
1 parent 17eef3a commit 4098a03

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

python/paddle/v2/parameters.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -325,9 +325,9 @@ def to_tar(self, f):
325325
"""
326326
Save parameters to a tar file.
327327
328-
WARNING: Do not use this function to save parameters directly unless you
329-
know exactly what you are doing. `paddle.v2.trainer.SGD.save_parameter_to_tar(f)`
330-
should be used instead.
328+
WARNING: You should use `paddle.v2.trainer.SGD.save_parameter_to_tar(f)`
329+
to save parameters most of the time. Otherwise, some settings such
330+
as model average will not take effect.
331331
332332
:param f:
333333
:type f: file

0 commit comments

Comments
 (0)