diff --git a/python/paddle/utils/deprecated.py b/python/paddle/utils/deprecated.py old mode 100644 new mode 100755 index d4e21748b55326468edb2ba1e46114e8d66c0046..daa2826ca360f120cea5f0fd0afecc8dc40b0b7e --- a/python/paddle/utils/deprecated.py +++ b/python/paddle/utils/deprecated.py @@ -35,10 +35,12 @@ def deprecated(update_to="", since="", reason=""): - The docstring of the API will be modified to include a notice about deprecation." - Raises a :class:`~exceptions.DeprecatedWarning` when old API is called. + Args: since(str): The version at which the decorated method is considered deprecated. update_to(str): The new API users should use. reason(str): The reason why the API is deprecated. + Returns: decorator: decorated function or class. """